Skip to content

Commit

Permalink
update msg2
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfiea committed Dec 3, 2024
1 parent a9d823b commit c3fa5f5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,13 @@ spec:
ONLINE_UPDATE_DONE_MSG="Database online upgrade portion is done, waiting for offline request."
MANAGE_DEPLOYMENTREADY_MSG=$(oc get ManageWorkspace -n ${MAS_APP_NAMESPACE} ${MAS_INSTANCE_ID}-${MAS_WORKSPACE_ID} -o=jsonpath="{.status.conditions[?(@.type=='DeploymentReady')].message}")
if [[ $MANAGE_DEPLOYMENTREADY_MSG == *"$ONLINE_UPDATE_DONE_MSG"* ]]; then
echo "ManageWorkspace indicates it is ready for offline upgrade: ${MANAGE_DEPLOYMENTREADY_MSG}"
echo "Status found is: ${MANAGE_DEPLOYMENTREADY_MSG}"
echo "ManageWorkspace indicates it is ready for offline upgrade, patching manageofflineupgraderequest-${MAS_WORKSPACE_ID} to requested"
oc patch -n ${MAS_APP_NAMESPACE} manageofflineupgraderequests.apps.mas.ibm.com manageofflineupgraderequest-${MAS_WORKSPACE_ID} -p '{"spec":{"stage":"requested"}}'
echo "Patch complete"
else
echo "The ManageWorkspace does not indicate it is ready for offlineupgrade, so do nothing : ${MANAGE_DEPLOYMENTREADY_MSG}"
echo "Status found is: ${MANAGE_DEPLOYMENTREADY_MSG}"
echo "The ManageWorkspace Status does not indicate it is ready for offlineupgrade, so do nothing"
fi
Expand Down

0 comments on commit c3fa5f5

Please sign in to comment.