Represents a Kustomize deployment.
Use this construct to import an existing Kustomize directory and incorporate it into your constructs.
import { Kustomize } from 'cdk8s-kustomize'
new Kustomize(scope: Construct, id: string, props: KustomizeProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
KustomizeProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: KustomizeProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Kustomize } from 'cdk8s-kustomize'
Kustomize.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
apiObjects |
cdk8s.ApiObject[] |
Returns all the included API objects. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly apiObjects: ApiObject[];
- Type: cdk8s.ApiObject[]
Returns all the included API objects.
Options for Kustomize
.
import { KustomizeProps } from 'cdk8s-kustomize'
const kustomizeProps: KustomizeProps = { ... }
Name | Type | Description |
---|---|---|
url |
string |
URL or path to the Kustomize directory. |
kustomizeExecutable |
string | string[] |
The local kustomize executable to use in order to create the manifest. |
kustomizeFlags |
string[] |
Additional flags to add to the kustomize execution. |
public readonly url: string;
- Type: string
URL or path to the Kustomize directory.
GoGetter URLs are supported: for example to get github's CrunchyData postgres operator, subdirectory kustomize/install/default, from the master ref - use:
See https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md for more information
public readonly kustomizeExecutable: string | string[];
- Type: string | string[]
- Default: ["kubectl", "kustomize"]
The local kustomize executable to use in order to create the manifest.
public readonly kustomizeFlags: string[];
- Type: string[]
- Default: []
Additional flags to add to the kustomize
execution.