Skip to content

Commit

Permalink
Hot Fix: Filter healthcheck (#931)
Browse files Browse the repository at this point in the history
* OpenShift installer retry mechanism2

* This reverts commit aae3470.

* Filter out node-healthcheck-operator and self-node-remediation during CSV verification
  • Loading branch information
ebattat authored Nov 20, 2024
1 parent c1af891 commit 8e44a8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benchmark_runner/common/oc/oc.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,8 +914,9 @@ def wait_for_upgrade_version(self, operator: str, upgrade_version: str,
current_wait_time = 0

while timeout <= 0 or current_wait_time <= timeout:
upgrade_versions = self.run(
f"{self.__cli} get csv -n {namespace} -o custom-columns=:.spec.version --no-headers").splitlines()
# Filter out node-healthcheck-operator and self-node-remediation during CSV verification because they exist in all namespaces
upgrade_versions = self.run(f"{self.__cli} get csv -n {namespace} -o json | jq -r '.items[] | select(.metadata.name | test(\"node-healthcheck-operator|self-node-remediation\") | not) | .spec.version'".splitlines()
).splitlines()
count_upgrade_version = sum(1 for actual_upgrade_version in upgrade_versions if
'.'.join(actual_upgrade_version.split('.')[0:2]) == upgrade_version)

Expand Down

0 comments on commit 8e44a8c

Please sign in to comment.