Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mtrecreate.sh #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/mtrecreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
oc rollout status deploy wa-master -n $PROJECT_CPD_INSTANCE