From 3b0e3134ffa6441d43a84e9ba29b2084b468c1a9 Mon Sep 17 00:00:00 2001 From: Cory Latschkowski Date: Wed, 6 Nov 2024 01:27:53 -0600 Subject: [PATCH] fix: job --- .../instance/components/wait-for-servicemesh/job.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/operators/rhods-operator/instance/components/wait-for-servicemesh/job.sh b/components/operators/rhods-operator/instance/components/wait-for-servicemesh/job.sh index e7a7f460..b708111a 100755 --- a/components/operators/rhods-operator/instance/components/wait-for-servicemesh/job.sh +++ b/components/operators/rhods-operator/instance/components/wait-for-servicemesh/job.sh @@ -17,6 +17,13 @@ patch_approval(){ patch subscription rhods-operator \ --type=merge --patch '{"spec":{"installPlanApproval":"'"${APPROVAL}"'"}}' + echo -n 'Waiting for RHOAI install plan.' + until oc -n redhat-ods-operator get installplan -l operators.coreos.com/rhods-operator.redhat-ods-operator 2>/dev/null + do + echo -n . + sleep 5 + done; echo + INSTALL_PLAN=$(oc -n redhat-ods-operator get installplan -l operators.coreos.com/rhods-operator.redhat-ods-operator -o name) oc -n redhat-ods-operator \ patch "${INSTALL_PLAN}" \