Merge pull request #6 from razorpay/revert-5-beta
Revert "fix: multi-container deployments"
This commit is contained in:
commit
d3928b67aa
|
@ -116,10 +116,10 @@ pollDeploymentRollout(){
|
||||||
startDeployment(){
|
startDeployment(){
|
||||||
local NAMESPACE=$1; shift
|
local NAMESPACE=$1; shift
|
||||||
local DEPLOY=$1; shift
|
local DEPLOY=$1; shift
|
||||||
local CONTAINER_UPDATE_LIST=$1
|
local CONTAINER=$1
|
||||||
|
|
||||||
kubectl -n ${NAMESPACE} set image deployment/${DEPLOY} \
|
kubectl -n ${NAMESPACE} set image deployment/${DEPLOY} \
|
||||||
"${CONTAINER_UPDATE_LIST}" --record
|
${CONTAINER}="${PLUGIN_REPO}:${PLUGIN_TAG}" --record
|
||||||
|
|
||||||
pollDeploymentRollout ${NAMESPACE} ${DEPLOY}
|
pollDeploymentRollout ${NAMESPACE} ${DEPLOY}
|
||||||
if [ "$?" -eq 0 ]; then
|
if [ "$?" -eq 0 ]; then
|
||||||
|
@ -139,15 +139,14 @@ 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
|
for CONTAINER in ${CONTAINERS[@]}; do
|
||||||
CONTAINER_UPDATE_LIST+="${CONTAINER}=${PLUGIN_REPO}:${PLUGIN_TAG} "
|
startDeployment ${NAMESPACE} ${DEPLOY} ${CONTAINER}
|
||||||
done
|
|
||||||
startDeployment ${NAMESPACE} ${DEPLOY} ${CONTAINER_UPDATE_LIST}
|
|
||||||
if [ "$?" -eq 0 ]; then
|
if [ "$?" -eq 0 ]; then
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
clientAuthToken(){
|
clientAuthToken(){
|
||||||
|
|
Loading…
Reference in New Issue