fix: ensure folder exists for emptyDir mount at runtime

This commit is contained in:
Stefan Reimer 2024-05-20 10:47:15 +00:00
parent a9b3cd1961
commit 735b0dac22
2 changed files with 2 additions and 2 deletions

View File

@ -41,4 +41,4 @@ ADD sa2kubeconfig.sh /usr/local/bin/sa2kubeconfig.sh
USER ${ARGOCD_USER_ID} USER ${ARGOCD_USER_ID}
RUN helm plugin install --version ${HELM_SECRETS_VERSION} https://github.com/jkroepke/helm-secrets RUN helm plugin install --version ${HELM_SECRETS_VERSION} https://github.com/jkroepke/helm-secrets
RUN sed -i -e 's/secrets/secrets --evaluate-templates/' "$(helm env HELM_PLUGINS)/helm-secrets/scripts/wrapper/helm.sh" RUN mkdir -p /home/argocd/.kube && sed -i -e 's/secrets/secrets --evaluate-templates/' "$(helm env HELM_PLUGINS)/helm-secrets/scripts/wrapper/helm.sh"

View File

@ -1,6 +1,6 @@
#!/bin/sh -e #!/bin/sh -e
SA_NAME=argocd-repo-server SA_NAME=$ARGOCD_REPO_SERVER_NAME
CA64=$(cat /run/secrets/kubernetes.io/serviceaccount/ca.crt | base64 -w0) CA64=$(cat /run/secrets/kubernetes.io/serviceaccount/ca.crt | base64 -w0)
TOKEN=$(cat /run/secrets/kubernetes.io/serviceaccount/token) TOKEN=$(cat /run/secrets/kubernetes.io/serviceaccount/token)