Skip to content

Commit

Permalink
Merge pull request #633 from nestoracunablanco/fix/optimzeMachineConf…
Browse files Browse the repository at this point in the history
…igPool

perf: optimizes check for updated machineconfigpool
  • Loading branch information
kubevirt-bot authored Nov 12, 2024
2 parents 6334890 + 702cd1d commit baf77bb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,14 @@ spec:
reservedSystemCPUs: "2"
EOF

oc wait --for=condition=Updating --timeout=300s machineconfigpool worker
# it can take a while to enable CPU manager
oc wait --for=condition=Updated --timeout=900s machineconfigpool worker
# Verify if the machine configuration has been updated (this will increase test speed when running the second time)
machineconfigpool_updated=$(oc get machineconfigpool worker -o jsonpath='{range .status.conditions[*]}{.type}: {.status}{"\n"}{end}' | grep Updated | awk '{print $2}')

if [ $machineconfigpool_updated != "True" ]; then
oc wait --for=condition=Updating --timeout=300s machineconfigpool worker
# it can take a while to enable CPU manager
oc wait --for=condition=Updated --timeout=900s machineconfigpool worker
fi
fi

_curl() {
Expand Down

0 comments on commit baf77bb

Please sign in to comment.