flux v0.27.3

Kustomization.spec

KustomizationSpec defines the desired state of a kustomization.

20 fields
Kustomization.spec fields and descriptions
Field / TypeDescription
object

Decrypt Kubernetes secrets before applying them on the cluster.

object[]

DependsOn may contain a dependency.CrossNamespaceDependencyReference slice with references to Kustomization resources that must be ready before this Kustomization can be reconciled.

force
boolean

Force instructs the controller to recreate resources when patching fails due to an immutable field change.

  • default: false
object[]

A list of resources to be included in the health assessment.

object[]

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.

interval
string required

The interval at which to reconcile the Kustomization.

object

The KubeConfig for reconciling the Kustomization on a remote cluster. When specified, KubeConfig takes precedence over ServiceAccountName.

object[]

Strategic merge and JSON patches, defined as inline YAML objects, capable of targeting objects based on kind, label and annotation selectors.

object[]

JSON 6902 patches, defined as inline YAML objects.

any[]

Strategic merge patches, defined as inline YAML objects.

path
string

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.

object

PostBuild describes which actions to perform on the YAML manifest generated by building the kustomize overlay.

prune
boolean required

Prune enables garbage collection.

retryInterval
string

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

The name of the Kubernetes service account to impersonate when reconciling this Kustomization.

object required

Reference of the source where the kustomization file is.

suspend
boolean

This flag tells the controller to suspend subsequent kustomize executions, it does not apply to already started executions. Defaults to false.

targetNamespace
string

TargetNamespace sets or overrides the namespace in the kustomization.yaml file.

  • minLength: 1
  • maxLength: 63
timeout
string

Timeout for validation, apply and health checking operations. Defaults to 'Interval' duration.

validation
string

Validate the Kubernetes objects before applying them on the cluster. The validation strategy can be 'client' (local dry-run), 'server' (APIServer dry-run) or 'none'. When 'Force' is 'true', validation will fallback to 'client' if set to 'server' because server-side validation is not supported in this scenario.

  • enum: ["none","client","server"]