Skip to content

Commit

Permalink
support rosa and hypershift clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
myakove committed Jul 16, 2023
1 parent 4633e0d commit 839e607
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
15 changes: 3 additions & 12 deletions app/libs/rosa_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,9 @@ def wait_for_osd_cluster_ready_job(ocp_client):
name="osd-cluster-ready",
namespace="openshift-monitoring",
)
# TODO: use job.wait_for_condition() once https://github.com/RedHatQE/openshift-python-wrapper/pull/1248 merged
# job.wait_for_condition(
# condition=job.Condition.COMPLETE, status="True", timeout=tts(ts="40m")
# )
for sample in TimeoutSampler(
wait_timeout=tts(ts="40m"),
sleep=1,
func=lambda: job.instance,
):
for cond in sample.get("status", {}).get("conditions", []):
if cond["type"] == job.Condition.COMPLETE and cond["status"] == "True":
return
job.wait_for_condition(
condition=job.Condition.COMPLETE, status="True", timeout=tts(ts="40m")
)


def dump_cluster_data_to_file(cluster_data):
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 839e607

Please sign in to comment.