diff --git a/scripts/mtrecreate.sh b/scripts/mtrecreate.sh index d5c31bd..69586cd 100644 --- a/scripts/mtrecreate.sh +++ b/scripts/mtrecreate.sh @@ -127,7 +127,7 @@ declare -a deployments=("wa-dwf-ibm-mt-dwf-lcm" "wa-dwf-ibm-mt-dwf-trainer" "wa- # Function to check if a deployment is ready check_deployments_ready() { local deployment=$1 - local deployment_status=$(oc get deployment "$deployment" -o=jsonpath='{.status.conditions[?(@.type=="Available")].status}') + local deployment_status=$(oc get deployment "$deployment" -n $PROJECT_CPD_INSTANCE -o=jsonpath='{.status.conditions[?(@.type=="Available")].status}') if [ "$deployment_status" = "True" ]; then echo -e "\nDeployment $deployment is ready." @@ -170,4 +170,4 @@ done # Restart master pod echo -e "\n## Restarting master pod" oc rollout restart deploy wa-master -n $PROJECT_CPD_INSTANCE -oc rollout status deploy wa-master -n $PROJECT_CPD_INSTANCE \ No newline at end of file +oc rollout status deploy wa-master -n $PROJECT_CPD_INSTANCE