Skip to content

Commit

Permalink
feat: pass all values files directly to helmfile
Browse files Browse the repository at this point in the history
The new helm-sops release do not need file with specific names so
we can now pass them directly to helmfile and not with --values param.
  • Loading branch information
lconsuegra committed Jun 28, 2023
1 parent 15bb445 commit 01ecc18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions argocd-helmfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,11 @@ case $phase in
INTERNAL_HELM_TEMPLATE_OPTIONS="${INTERNAL_HELM_TEMPLATE_OPTIONS} ${INTERNAL_HELM_API_VERSIONS}"
fi

for file in $(yq '.releases[0].values[]' helmfile.yaml) ; do
HELM_VALUES_FILE="--values ${file} ${HELM_VALUES_FILE}"
done

if [[ "${ARGOCD_ENV_ADDITIONAL_VALUES}" ]] ; then
echoerr "Detected additional values"
tmpfile=$(mktemp /tmp/helmfile-additional-values-XXXXXX)
echo "${ARGOCD_ENV_ADDITIONAL_VALUES}" > $tmpfile
HELM_VALUES_FILE="--values ${tmpfile} ${HELM_VALUES_FILE}"
HELM_VALUES_FILE="--values ${tmpfile}"
fi

${helmfile} \
Expand Down

0 comments on commit 01ecc18

Please sign in to comment.