From 995b37fe1a26ca86e8b8349a2d685536eb7e0924 Mon Sep 17 00:00:00 2001 From: Charles Martinot Date: Wed, 8 Feb 2017 14:38:37 +0800 Subject: [PATCH] Arrays are converted to strings --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 3ffb61d..20d8f45 100644 --- a/update.sh +++ b/update.sh @@ -17,7 +17,7 @@ kubectl config set-cluster default --server=${KUBERNETES_SERVER} --insecure-skip kubectl config set-context default --cluster=default --user=default kubectl config use-context default -DEPLOYMENTS=$(echo $PLUGIN_DEPLOYMENT|tr -d '[],') +IFS=', ' read -r -a DEPLOYMENTS <<< "$PLUGIN_DEPLOYMENT" for DEPLOY in ${DEPLOYMENTS[@]}; do kubectl -n ${PLUGIN_NAMESPACE} set image deployment/${DEPLOY} \ ${PLUGIN_CONTAINER}=${PLUGIN_REPO}:${PLUGIN_TAG}