From 2aa42c86398b85ba68618bacfc5d7a027842f173 Mon Sep 17 00:00:00 2001 From: JuniorJPDJ Date: Thu, 14 Mar 2024 00:40:59 +0100 Subject: [PATCH] fix(helm-vault-k8s-auth-wrapper): always run helm --- helm-vault-k8s-auth-wrapper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-vault-k8s-auth-wrapper.sh b/helm-vault-k8s-auth-wrapper.sh index 7c30d9e..1a7b313 100755 --- a/helm-vault-k8s-auth-wrapper.sh +++ b/helm-vault-k8s-auth-wrapper.sh @@ -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 "$@"