Adjust base64 params to be more portable (alpine compatible)
This commit is contained in:
parent
2ec2a22db0
commit
7e0b3ce520
@ -9,7 +9,7 @@ set -o nounset
|
|||||||
# set -o xtrace
|
# set -o xtrace
|
||||||
|
|
||||||
# Decode and save the K8S CA cert
|
# Decode and save the K8S CA cert
|
||||||
echo "${K8S_CA_CRT}" | base64 --decode -i > "${HOME}/k8s_ca.crt"
|
echo "${K8S_CA_CRT}" | base64 -d - > "${HOME}/k8s_ca.crt"
|
||||||
|
|
||||||
# Setup the local kubectl client
|
# Setup the local kubectl client
|
||||||
kubectl config set-context travis \
|
kubectl config set-context travis \
|
||||||
@ -22,7 +22,7 @@ kubectl config set-cluster atat-cluster \
|
|||||||
--server="${K8S_ENDPOINT}" \
|
--server="${K8S_ENDPOINT}" \
|
||||||
--certificate-authority="${HOME}/k8s_ca.crt"
|
--certificate-authority="${HOME}/k8s_ca.crt"
|
||||||
|
|
||||||
kubectl config set-credentials atat-deployer --token=`echo ${K8S_USER_TOKEN} | base64 --decode`
|
kubectl config set-credentials atat-deployer --token="$(echo ${K8S_USER_TOKEN} | base64 -d -)"
|
||||||
|
|
||||||
kubectl config use-context travis
|
kubectl config use-context travis
|
||||||
kubectl config current-context
|
kubectl config current-context
|
||||||
|
Loading…
x
Reference in New Issue
Block a user