mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 21:09:40 +02:00
PR #1839 introduced template rendering for postRendererArgs, but PR #2510 reverted it while fixing a separate regression. This left helmDefaults-level postRendererArgs containing template expressions (e.g. {{ .Release.Name }}) passed to helm as literal strings instead of being resolved per-release. Add renderPostRendererArgs() that templates helmDefaults.postRendererArgs at flag-generation time using the release's template data, reusing the existing createReleaseTemplateData() helper. Release-level args are already templated by ExecuteTemplateExpressions and CLI args are static, so only the helmDefaults path needs rendering. Fixes #2580 Signed-off-by: opencode <opencode@users.noreply.github.com> Signed-off-by: yxxhero <aiopsclub@163.com>
11 lines
218 B
YAML
11 lines
218 B
YAML
apiVersion: v1
|
|
type: postrenderer/v1
|
|
name: echo-args
|
|
version: 0.1.0
|
|
runtime: subprocess
|
|
runtimeConfig:
|
|
platformCommand:
|
|
- command: ${HELM_PLUGIN_DIR}/echo-args.sh
|
|
args:
|
|
- ${HELM_POST_RENDERER_ARGS}
|