script: update all containers of a dep to an image
This commit is contained in:
parent
d3928b67aa
commit
d5f0e54075
17
update.sh
17
update.sh
|
@ -119,8 +119,7 @@ startDeployment(){
|
||||||
local CONTAINER=$1
|
local CONTAINER=$1
|
||||||
|
|
||||||
kubectl -n ${NAMESPACE} set image deployment/${DEPLOY} \
|
kubectl -n ${NAMESPACE} set image deployment/${DEPLOY} \
|
||||||
${CONTAINER}="${PLUGIN_REPO}:${PLUGIN_TAG}" --record
|
*="${PLUGIN_REPO}:${PLUGIN_TAG}" --record
|
||||||
|
|
||||||
pollDeploymentRollout ${NAMESPACE} ${DEPLOY}
|
pollDeploymentRollout ${NAMESPACE} ${DEPLOY}
|
||||||
if [ "$?" -eq 0 ]; then
|
if [ "$?" -eq 0 ]; then
|
||||||
return 0
|
return 0
|
||||||
|
@ -138,14 +137,12 @@ startDeployments(){
|
||||||
|
|
||||||
for DEPLOY in ${DEPLOYMENTS[@]}; do
|
for DEPLOY in ${DEPLOYMENTS[@]}; do
|
||||||
echo "[INFO] Deploying ${DEPLOY} to ${CLUSTER} ${NAMESPACE}"
|
echo "[INFO] Deploying ${DEPLOY} to ${CLUSTER} ${NAMESPACE}"
|
||||||
for CONTAINER in ${CONTAINERS[@]}; do
|
startDeployment ${NAMESPACE} ${DEPLOY} ${CONTAINER}
|
||||||
startDeployment ${NAMESPACE} ${DEPLOY} ${CONTAINER}
|
if [ "$?" -eq 0 ]; then
|
||||||
if [ "$?" -eq 0 ]; then
|
continue
|
||||||
continue
|
else
|
||||||
else
|
exit 0
|
||||||
exit 0
|
fi
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue