Shuffle around kubectl setup commands
This commit is contained in:
parent
717f67cee5
commit
21b442ce3e
@ -12,6 +12,11 @@ set -o nounset
|
||||
echo "${K8S_CA_CRT}" | base64 --decode -i > "${HOME}/k8s_ca.crt"
|
||||
|
||||
# Setup the local kubectl client
|
||||
kubectl config set-context travis \
|
||||
--cluster=atat-cluster \
|
||||
--user=atat-deployer \
|
||||
--namespace=atat
|
||||
|
||||
kubectl config set-cluster atat-cluster \
|
||||
--embed-certs=true \
|
||||
--server="${K8S_ENDPOINT}" \
|
||||
@ -19,11 +24,6 @@ kubectl config set-cluster atat-cluster \
|
||||
|
||||
kubectl config set-credentials atat-deployer --token="${K8S_USER_TOKEN}"
|
||||
|
||||
kubectl config set-context travis \
|
||||
--cluster=atat-cluster \
|
||||
--user=atat-deployer \
|
||||
--namespace=atat
|
||||
|
||||
kubectl config use-context travis
|
||||
kubectl config current-context
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user