DirectoryArgs

data class DirectoryArgs(val directory: Output<String>? = null, val namespace: Output<String>? = null, val resourcePrefix: Output<String>? = null, val skipAwait: Output<Boolean>? = null) : ConvertibleToJava<DirectoryArgs>

Directory is a component representing a collection of resources described by a kustomize directory (kustomization).

Example Usage

Local Kustomize Directory

package myproject;
import com.pulumi.Pulumi;
import com.pulumi.kubernetes.kustomize.v2.Directory;
import com.pulumi.kubernetes.kustomize.v2.DirectoryArgs;
public class App {
public static void main(String[] args) {
Pulumi.run(ctx -> {
var helloWorld = new Directory("helloWorldLocal", DirectoryArgs.builder()
.directory("./helloWorld")
.build());
});
}
}

Kustomize Directory from a Git Repo

package myproject;
import com.pulumi.Pulumi;
import com.pulumi.kubernetes.kustomize.v2.Directory;
import com.pulumi.kubernetes.kustomize.v2.DirectoryArgs;
public class App {
public static void main(String[] args) {
Pulumi.run(ctx -> {
var helloWorld = new Directory("helloWorldRemote", DirectoryArgs.builder()
.directory("https://github.com/kubernetes-sigs/kustomize/tree/v3.3.1/examples/helloWorld")
.build());
});
}
}

Constructors

Link copied to clipboard
constructor(directory: Output<String>? = null, namespace: Output<String>? = null, resourcePrefix: Output<String>? = null, skipAwait: Output<Boolean>? = null)

Properties

Link copied to clipboard
val directory: Output<String>? = null

The directory containing the kustomization to apply. The value can be a local directory or a folder in a git repository. Example: ./helloWorld Example: https://github.com/kubernetes-sigs/kustomize/tree/master/examples/helloWorld

Link copied to clipboard
val namespace: Output<String>? = null

The default namespace to apply to the resources. Defaults to the provider's namespace.

Link copied to clipboard
val resourcePrefix: Output<String>? = null

A prefix for the auto-generated resource names. Defaults to the name of the Directory resource. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo:resourceName".

Link copied to clipboard
val skipAwait: Output<Boolean>? = null

Indicates that child resources should skip the await logic.

Functions

Link copied to clipboard
open override fun toJava(): DirectoryArgs