From b82bbae0c5dbf6ac41a6f9719660e8abab41d78f Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Thu, 16 Aug 2018 13:40:54 -0400 Subject: [PATCH] base64 decode user token --- deploy/kubernetes/atst-update-deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/kubernetes/atst-update-deploy.sh b/deploy/kubernetes/atst-update-deploy.sh index 719616ec..464669fd 100755 --- a/deploy/kubernetes/atst-update-deploy.sh +++ b/deploy/kubernetes/atst-update-deploy.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # -# deploy/kubernetes/atst-update-deploy.sh: Updates the existing ATST deployment +# deploy/kubernetes/atst-update-deploy.sh: Updates the existing ATST deployment # with a new source image set -o pipefail @@ -22,7 +22,7 @@ kubectl config set-cluster atat-cluster \ --server="${K8S_ENDPOINT}" \ --certificate-authority="${HOME}/k8s_ca.crt" -kubectl config set-credentials atat-deployer --token="${K8S_USER_TOKEN}" +kubectl config set-credentials atat-deployer --token=`echo ${K8S_USER_TOKEN} | base64 --decode` kubectl config use-context travis kubectl config current-context