fix: make kubeconfig more flexible
This commit is contained in:
parent
d004dc43e8
commit
a9b3cd1961
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user