From 4ea0a937996ad654d341b00c5809e71a3ad91ed1 Mon Sep 17 00:00:00 2001 From: Vincent De Smet Date: Mon, 20 Feb 2017 17:30:53 +0800 Subject: [PATCH] Read CA base64 encoded from env --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index d735c88..d25ef27 100755 --- a/update.sh +++ b/update.sh @@ -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