Skip to content

Commit

Permalink
fix: job
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 6, 2024
1 parent 3085ae2 commit 3b0e313
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit 3b0e313

Please sign in to comment.