Kustomization
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| interval | string | Yes | The interval at which to reconcile the Kustomization. This interval is approximate and may be subject to jitter to ensure efficient use of resources. | |
| prune | boolean | Yes | Prune enables garbage collection. | |
| sourceRef | object | Yes | Reference of the source where the kustomization file is. | |
| annotations | map | No | Annotations for the workload | |
| commonMetadata | object | No | CommonMetadata specifies the common labels and annotations that are applied to all resources. Any existing label or annotation will be overridden if its key matches a common one. | |
| components | array | No | Components specifies relative paths to specifications of other Components. | |
| decryption | object | No | Decrypt Kubernetes secrets before applying them on the cluster. | |
| deletionPolicy | string | No |
| DeletionPolicy can be used to control garbage collection when this Kustomization is deleted. Valid values are ('MirrorPrune', 'Delete', 'Orphan'). 'MirrorPrune' mirrors the Prune field (orphan if false, delete if true). Defaults to 'MirrorPrune'. |
| dependsOn | array | No | DependsOn may contain a meta.NamespacedObjectReference slice with references to Kustomization resources that must be ready before this Kustomization can be reconciled. | |
| force | boolean | No | Force instructs the controller to recreate resources when patching fails due to an immutable field change. | |
| healthCheckExprs | array | No | HealthCheckExprs is a list of healthcheck expressions for evaluating the health of custom resources using Common Expression Language (CEL). The expressions are evaluated only when Wait or HealthChecks are specified. | |
| healthChecks | array | No | A list of resources to be included in the health assessment. | |
| images | array | No | Images is a list of (image name, new name, new tag or digest) for changing image names, tags or digests. This can also be achieved with a patch, but this operator is simpler to specify. | |
| kubeConfig | object | No | The KubeConfig for reconciling the Kustomization on a remote cluster. When used in combination with KustomizationSpec.ServiceAccountName, forces the controller to act on behalf of that Service Account at the target cluster. If the --default-service-account flag is set, its value will be used as a controller level fallback for when KustomizationSpec.ServiceAccountName is empty. | |
| labels | map | No | Labels for the workload | |
| namePrefix | string | No | NamePrefix will prefix the names of all managed resources. | |
| nameSuffix | string | No | NameSuffix will suffix the names of all managed resources. | |
| patches | array | No | Strategic merge and JSON patches, defined as inline YAML objects, capable of targeting objects based on kind, label and annotation selectors. | |
| path | string | No | Path to the directory containing the kustomization.yaml file, or the set of plain YAMLs a kustomization.yaml should be generated for. Defaults to 'None', which translates to the root path of the SourceRef. | |
| postBuild | object | No | PostBuild describes which actions to perform on the YAML manifest generated by building the kustomize overlay. | |
| retryInterval | string | No | The interval at which to retry a previously failed reconciliation. When not specified, the controller uses the KustomizationSpec.Interval value to retry failures. | |
| serviceAccountName | string | No | The name of the Kubernetes service account to impersonate when reconciling this Kustomization. | |
| suspend | boolean | No | This flag tells the controller to suspend subsequent kustomize executions, it does not apply to already started executions. Defaults to false. | |
| targetNamespace | string | No | TargetNamespace sets or overrides the namespace in the kustomization.yaml file. | |
| timeout | string | No | Timeout for validation, apply and health checking operations. Defaults to 'Interval' duration. | |
| wait | boolean | No | Wait instructs the controller to check the health of all the reconciled resources. When enabled, the HealthChecks are ignored. Defaults to false. |
Template
The following tabs display the definition's Cue template and the rendered YAML. The rendered YAML is the output of the Cue template when the definition is applied to a cluster.