Skip to content

Commit

Permalink
fix(helm-vault-k8s-auth-wrapper): always run helm
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorJPDJ committed Mar 13, 2024
1 parent 69cf0c8 commit 2aa42c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helm-vault-k8s-auth-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [[ $DECODING_SECRETS = 1 ]] ; then
# https://developer.hashicorp.com/vault/api-docs/auth/kubernetes#login
export VAULT_TOKEN="$(curl -s -X POST -d '{"role": "'"$VAULT_K8S_ROLE"'", "jwt": "'"$K8S_SA_TOKEN"'"}' "$VAULT_ADDR/v1/${VAULT_K8S_MOUNT_PATH:-auth/kubernetes/login}" | jq -r '.auth.client_token | select( . != null )')"
# if auth failed this should be empty

# run helm wrapper from helm-secrets
exec /home/argocd/.local/share/helm/plugins/helm-secrets/scripts/wrapper/helm.sh "$@"
fi

# run helm wrapper from helm-secrets
exec /home/argocd/.local/share/helm/plugins/helm-secrets/scripts/wrapper/helm.sh "$@"

0 comments on commit 2aa42c8

Please sign in to comment.