mirror of
https://github.com/honestbee/drone-kubernetes.git
synced 2025-05-16 00:33:18 +00:00
script: update all containers of a dep to an image
This commit is contained in:
parent
d3928b67aa
commit
d5f0e54075
1 changed files with 7 additions and 10 deletions
|
@ -119,8 +119,7 @@ startDeployment(){
|
|||
local CONTAINER=$1
|
||||
|
||||
kubectl -n ${NAMESPACE} set image deployment/${DEPLOY} \
|
||||
${CONTAINER}="${PLUGIN_REPO}:${PLUGIN_TAG}" --record
|
||||
|
||||
*="${PLUGIN_REPO}:${PLUGIN_TAG}" --record
|
||||
pollDeploymentRollout ${NAMESPACE} ${DEPLOY}
|
||||
if [ "$?" -eq 0 ]; then
|
||||
return 0
|
||||
|
@ -138,7 +137,6 @@ startDeployments(){
|
|||
|
||||
for DEPLOY in ${DEPLOYMENTS[@]}; do
|
||||
echo "[INFO] Deploying ${DEPLOY} to ${CLUSTER} ${NAMESPACE}"
|
||||
for CONTAINER in ${CONTAINERS[@]}; do
|
||||
startDeployment ${NAMESPACE} ${DEPLOY} ${CONTAINER}
|
||||
if [ "$?" -eq 0 ]; then
|
||||
continue
|
||||
|
@ -146,7 +144,6 @@ startDeployments(){
|
|||
exit 0
|
||||
fi
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
clientAuthToken(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue