Skip to content

Commit

Permalink
Get pod status by each run in is_pod_running
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Dec 11, 2023
1 parent 751acc4 commit a4d0fc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions container_ci_suite/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,13 @@ def is_s2i_pod_running(self) -> bool:
return build_pod_finished

def is_pod_running(self):
if not self.pod_json_data:
self.pod_json_data = self.oc_api.oc_get_pod_status()
for count in range(60):
print(f"Cycle for checking pod status: {count}.")
output = OpenShiftAPI.run_oc_command("status --suggest", json_output=False)
# if not self.is_pod_finished(json_data=json_data):
# time.sleep(3
# continue
self.pod_json_data = self.oc_api.oc_get_pod_status()
for item in self.pod_json_data["items"]:
pod_name = item["metadata"]["name"]
status = item["status"]["phase"]
Expand Down

0 comments on commit a4d0fc1

Please sign in to comment.