mirror of
https://github.com/honestbee/drone-kubernetes.git
synced 2025-05-13 08:13:18 +00:00
Clarify TLS Verfication impact
This commit is contained in:
parent
5c69e4ff09
commit
8da057f924
2 changed files with 10 additions and 2 deletions
|
@ -18,15 +18,16 @@ fi
|
|||
|
||||
kubectl config set-credentials default --token=${KUBERNETES_TOKEN}
|
||||
if [ ! -z ${KUBERNETES_CERT} ]; then
|
||||
echo ${KUBERNETES_CERT}} | base64 -d > ca.crt
|
||||
echo ${KUBERNETES_CERT} | base64 -d > ca.crt
|
||||
kubectl config set-cluster default --server=${KUBERNETES_SERVER} --certificate-authority=ca.crt
|
||||
else
|
||||
echo "WARNING: Using insecure connection to cluster"
|
||||
kubectl config set-cluster default --server=${KUBERNETES_SERVER} --insecure-skip-tls-verify=true
|
||||
fi
|
||||
|
||||
kubectl config set-context default --cluster=default --user=default
|
||||
kubectl config use-context default
|
||||
|
||||
|
||||
IFS=',' read -r -a DEPLOYMENTS <<< "$PLUGIN_DEPLOYMENT"
|
||||
for DEPLOY in ${DEPLOYMENTS[@]}; do
|
||||
echo Deploying to $KUBERNETES_SERVER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue