Read CA base64 encoded from env
This commit is contained in:
parent
cfc612a621
commit
4ea0a93799
|
@ -14,7 +14,7 @@ if [ ! -z ${PLUGIN_KUBERNETES_SERVER} ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z ${PLUGIN_KUBERNETES_CERT} ]; then
|
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
|
kubectl config set-cluster default --server=${KUBERNETES_SERVER} --certificate-authority=ca.crt
|
||||||
else
|
else
|
||||||
kubectl config set-cluster default --server=${KUBERNETES_SERVER} --insecure-skip-tls-verify=true
|
kubectl config set-cluster default --server=${KUBERNETES_SERVER} --insecure-skip-tls-verify=true
|
||||||
|
|
Loading…
Reference in New Issue