fix: make kubeconfig more flexible

This commit is contained in:
Stefan Reimer 2024-05-19 21:06:39 +00:00
parent d004dc43e8
commit a9b3cd1961

View File

@ -1,13 +1,11 @@
#!/bin/sh
#!/bin/sh -e
SA_NAME=argocd-repo-server
CA64=$(cat /run/secrets/kubernetes.io/serviceaccount/ca.crt | base64 -w0)
TOKEN=$(cat /run/secrets/kubernetes.io/serviceaccount/token)
mkdir -p $HOME/.kube
cat > $HOME/.kube/config << EOF
cat << EOF
apiVersion: v1
kind: Config
clusters: