Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: optimizes check for updated machineconfigpool #633

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading