File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -417,7 +417,13 @@ case $phase in
417417 INTERNAL_HELM_TEMPLATE_OPTIONS=" ${INTERNAL_HELM_TEMPLATE_OPTIONS} ${INTERNAL_HELM_API_VERSIONS} "
418418 fi
419419 # do sops encryption here
420- # TODO: support post process pipeline here
420+ if [ ! -z " ${HELMFILE_PREGENERATE_SCRIPT_FILE} " ]; then
421+ echoerr " executint HELMFILE_PREGENERATE_SCRIPT:"
422+ HELMFILE_PREGENERATE_SCRIPT_FILE=$( realpath " ${HELMFILE_PREGENERATE_SCRIPT_FILE} " )
423+ bash -x " ${HELMFILE_PREGENERATE_SCRIPT_FILE} "
424+ fi
425+
426+ # TODO: support post process pipeline here
421427 ${helmfile} \
422428 template \
423429 --skip-deps ${INTERNAL_HELMFILE_TEMPLATE_OPTIONS} \
@@ -529,7 +535,12 @@ case $phase in
529535 "title": "HELMFILE_USE_CONTEXT_NAMESPACE",
530536 "tooltip": "do not set helmfile namespace to ARGOCD_APP_NAMESPACE (for multi-namespace apps)",
531537 "itemType": "boolean"
532- }
538+ },
539+ {
540+ "name": "HELMFILE_PREGENERATE_SCRIPT_FILE",
541+ "title": "HELMFILE_PREGENERATE_SCRIPT_FILE",
542+ "tooltip": "path to script to execute at start at generate phase"
543+ },
533544]
534545EOF
535546
You can’t perform that action at this time.
0 commit comments