fix: ensure folder exists for emptyDir mount at runtime
This commit is contained in:
parent
a9b3cd1961
commit
735b0dac22
@ -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"
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user