Skip to content

Commit

Permalink
Clarify precedence in Kustomization substituteFrom
Browse files Browse the repository at this point in the history
Signed-off-by: Serge van Ginderachter <[email protected]>
  • Loading branch information
srgvg authored Dec 6, 2024
1 parent 933ef1f commit 2df3f4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/spec/v1/kustomizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,11 @@ stringData:
token: ${token}
```

The var values which are specified in-line with `substitute`
**Note:** The var values which are specified in-line with `substitute`
take precedence over the ones derived from `substituteFrom`.
When var values for the same keys/variable names are derived from multiple
`ConfigMaps` or `Secrets` referenced in the `substituteFrom` list, then the
formers take precedence over the latters.

**Note:** If you want to avoid var substitutions in scripts embedded in
ConfigMaps or container commands, you must use the format `$var` instead of
Expand Down

0 comments on commit 2df3f4b

Please sign in to comment.