Skip to content

Commit 1837d1c

Browse files
committed
Add StrictPostBuildSubstitutions flag to docs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
1 parent 4f471c7 commit 1837d1c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/spec/v1/kustomizations.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,11 @@ will print out `${var}`.
605605
All the undefined variables in the format `${var}` will be substituted with an
606606
empty string unless a default value is provided e.g. `${var:=default}`.
607607

608+
**Note:** It is recommended to set the `--feature-gates=StrictPostBuildSubstitutions=true`
609+
controller flag, so that the post-build substitutions will fail if a
610+
variable without a default value is declared in files but is
611+
missing from the input vars.
612+
608613
You can disable the variable substitution for certain resources by either
609614
labelling or annotating them with:
610615

0 commit comments

Comments
 (0)