flux v2.9.5

Kustomization.spec.postBuild

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

3 fields
Kustomization.spec.postBuild fields and descriptions
Field / TypeDescription
map[string]string

Substitute holds a map of key/value pairs. The variables defined in your YAML manifests that match any of the keys defined in the map will be substituted with the set value. Includes support for bash string replacement functions e.g. ${var:=default}, ${var:position} and ${var/substring/replacement}.

object[]

SubstituteFrom holds references to ConfigMaps and Secrets containing the variables and their values to be substituted in the YAML manifests. The ConfigMap and the Secret data keys represent the var names, and they must match the vars declared in the manifests for the substitution to happen.

substituteStrategy
string

SubstituteStrategy defines the strategy for substituting variables in the YAML manifests. Valid values are: - WithVariables (the default): require at least one variable to be defined, either through the inline map or through the resolved references to ConfigMaps and Secrets. - Always: perform the substitution even if no variables are defined.

  • enum: ["WithVariables","Always"]