Skip to content

Commit

Permalink
taking out extra comments
Browse files Browse the repository at this point in the history
rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
paigerube14 committed May 1, 2024
1 parent c549f5d commit 2fb0621
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cerberus/kubernetes/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ def namespace_sleep_tracker(namespace, pods_tracker, ignore_patterns):
def monitor_namespace(namespace, ignore_pattern=None):
notready_pods = set()
match = False
logging.info('monitor namespace')
notready_containers = defaultdict(list)
all_pod_info_list = cli.get_all_pod_info(namespace)
if all_pod_info_list is not None and len(all_pod_info_list) > 0:
Expand All @@ -232,11 +231,9 @@ def monitor_namespace(namespace, ignore_pattern=None):
if condition.type == "ContainersReady" and condition.status == "False":
if pod_status.container_statuses is not None:
for container in pod_status.container_statuses:
logging.info('container name')
if not container.ready:
notready_containers[pod].append(container.name)
if pod_status.init_container_statuses is not None:
logging.info('container status is none')
for container in pod_status.init_container_statuses:
if not container.ready:
notready_containers[pod].append(container.name)
Expand Down

0 comments on commit 2fb0621

Please sign in to comment.