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
|
SA_NAME=argocd-repo-server
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
mkdir -p $HOME/.kube
|
cat << EOF
|
||||||
|
|
||||||
cat > $HOME/.kube/config << EOF
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Config
|
kind: Config
|
||||||
clusters:
|
clusters:
|
||||||
|
Loading…
Reference in New Issue
Block a user