Read CA base64 encoded from env

This commit is contained in:
Vincent De Smet 2017-02-20 17:30:53 +08:00
parent cfc612a621
commit 4ea0a93799
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ if [ ! -z ${PLUGIN_KUBERNETES_SERVER} ]; then
fi
if [ ! -z ${PLUGIN_KUBERNETES_CERT} ]; then
echo ${PLUGIN_KUBERNETES_CERT} > ca.crt
echo ${PLUGIN_KUBERNETES_CERT} | base64 -d > ca.crt
kubectl config set-cluster default --server=${KUBERNETES_SERVER} --certificate-authority=ca.crt
else
kubectl config set-cluster default --server=${KUBERNETES_SERVER} --insecure-skip-tls-verify=true