File tree 1 file changed +5
-1
lines changed
ci-operator/step-registry/network/mtu-migration
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,11 @@ wait_for_mcp() {
64
64
timeout=${1}
65
65
# Wait until MCO starts applying new machine config to nodes
66
66
log " Waiting for all MachineConfigPools to start updating..."
67
- time oc wait mcp --all --for=' condition=UPDATING=True' --timeout=300s & > /dev/null
67
+ # The worker MachineConfigPool gets updated immediately if there are no machines.
68
+ if [[ $( oc get mcp worker -ojsonpath=' {.status.machineCount}' ) -ne 0 ]]; then
69
+ time oc wait mcp worker --for=' condition=UPDATING=True' --timeout=300s & > /dev/null
70
+ fi
71
+ time oc wait mcp master --for=' condition=UPDATING=True' --timeout=300s & > /dev/null
68
72
69
73
log " Waiting for all MachineConfigPools to finish updating..."
70
74
timeout " ${timeout} " bash << EOT
You can’t perform that action at this time.
0 commit comments