-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: consistent variable substitution for configMapKeyRef. Fixes #13890
Support for subsituting variables in `configMapKeyRef` was added in #7542 by manually parsing templates out of the string instead of using the standard `template.Replace()` functionality. Since the templates have the same syntax as simple template tags (e.g. `{{workflow.parameters.cm-name}}`), users reasonably expect it to work the same, but it doesn't, which leads to confusion. This replaces the manual parsing code with the standard `template.Replace()` function that everything else uses. Signed-off-by: Mason Malone <[email protected]>
- Loading branch information
Showing
2 changed files
with
76 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters