From ceababa555a68895ec112344c1f5dfde18750602 Mon Sep 17 00:00:00 2001 From: Jorge M Date: Tue, 15 Sep 2020 21:36:54 -0500 Subject: [PATCH] Refactor stateful plugin name --- update.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/update.sh b/update.sh index 491345f..46820a6 100755 --- a/update.sh +++ b/update.sh @@ -38,10 +38,10 @@ kubectl config use-context default if [ ! -z ${PLUGIN_USE_STATEFULSET} ]; then echo "WARNING: Currently updating statefulset ${PLUGIN_STATEFULSET}." - IFS=',' read -r -a DEPLOYMENTS <<< "${PLUGIN_STATEFULSET}" + IFS=',' read -r -a STATEFULSETS <<< "${PLUGIN_STATEFULSET}" IFS=',' read -r -a CONTAINERS <<< "${PLUGIN_CONTAINER}" - for DEPLOY in ${DEPLOYMENTS[@]}; do - echo Deploying to $KUBERNETES_SERVER + for DEPLOY in ${STATEFULSETS[@]}; do + echo Deploying statefulset to $KUBERNETES_SERVER for CONTAINER in ${CONTAINERS[@]}; do if [[ ${PLUGIN_FORCE} == "true" ]]; then kubectl -n ${PLUGIN_NAMESPACE} set image statefulset/${DEPLOY} \ @@ -69,5 +69,4 @@ else done done - fi