Skip to content

Commit

Permalink
Merge branch 'cloud-ark:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
omgoswami authored Jul 26, 2024
2 parents fbb8041 + 1e05e7f commit 2401905
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/crmetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def _num_of_not_running_pods(self, pod_list, kubecfg=''):
num_of_not_running_pods = 0
for pod in pod_list:
json_output = self._get_pod(pod, kubeconfig=kubecfg)
if json_output['status']['phase'] != 'Running':
phase = json_output['status']['phase'].strip()
if phase != 'Running' and phase != 'Succeeded':
num_of_not_running_pods = num_of_not_running_pods + 1

return num_of_not_running_pods
Expand Down

0 comments on commit 2401905

Please sign in to comment.