Skip to content

Commit

Permalink
Enable image-registry patch progress check.
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-zhang committed Mar 19, 2024
1 parent 1203423 commit e139302
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,16 @@ patch_image_registry() {
done
echo "Patch image registry"
oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"storage":{"emptyDir":{}}, "managementState": "Managed"}}'
sleep 180
set +e
for i in {1..30}; do
count=$(oc get co -n default --no-headers | awk '{ print $3 $4 $5 }' | grep -w -v TrueFalseFalse | wc -l)
echo "Not ready co count: ${count}"
if [[ ${count} -eq 0 ]]; then
break
fi
sleep 120
done
set -e
echo "Done of image registry patch"
}

Expand Down

0 comments on commit e139302

Please sign in to comment.