Skip to content

Commit

Permalink
Remove image registry state check after patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-zhang committed Mar 19, 2024
1 parent 8825f70 commit 1203423
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,7 @@ patch_image_registry() {
done
echo "Patch image registry"
oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"storage":{"emptyDir":{}}, "managementState": "Managed"}}'
for i in {1..10}; 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 30
done
sleep 180
echo "Done of image registry patch"
}

Expand Down

0 comments on commit 1203423

Please sign in to comment.