Skip to content

Commit

Permalink
Merge pull request #537 from gvillafanetapia/doc-escape-vars
Browse files Browse the repository at this point in the history
Docs - Add var substitution operator escape syntax
  • Loading branch information
stefanprodan authored Jan 17, 2022
2 parents b18584a + 6c343e1 commit 0a6505f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/spec/v1beta2/kustomization.md
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,11 @@ The var values which are specified in-line with `substitute`
take precedence over the ones in `substituteFrom`.

Note that if you want to avoid var substitutions in scripts embedded in ConfigMaps or container commands,
you must use the format `$var` instead of `${var}`. All the undefined variables in the format `${var}`
will be substituted with string empty, unless a default is provided e.g. `${var:=default}`.
you must use the format `$var` instead of `${var}`. If you want to keep the curly braces you can use `$${var}`
which will print out `${var}`.

All the undefined variables in the format `${var}` will be substituted with string empty, unless a default
is provided e.g. `${var:=default}`.

You can disable the variable substitution for certain resources by either
labeling or annotating them with:
Expand Down

0 comments on commit 0a6505f

Please sign in to comment.