Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paigerube14 committed Dec 13, 2023
1 parent acda507 commit 677f156
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cerberus/kubernetes/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,15 @@ def get_all_nodes_info():
# Outputs a json blob with informataion about all pods in a given namespace
def get_all_pod_info(namespace):
try:
ret = list_continue_helper(cli.list_namespaced_pod, namespace, pretty=True, limit=request_chunk_size)
ret = list_continue_helper(
cli.list_namespaced_pod,
namespace,
pretty=True,
limit=request_chunk_size,
field_selector="status.phase!=Succeeded",
)
except ApiException as e:
logging.error("Exception when calling CoreV1Api->list_namespaced_pod: %s\n" % e)

return ret


Expand Down

0 comments on commit 677f156

Please sign in to comment.