Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Skip port None when resolving names
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil1602 committed Jan 17, 2021
1 parent f6476b3 commit 5bb572d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/illuminatio/k8s_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def resolve_port_names(namespace, pod_label_selector, ports):

api = k8s.client.CoreV1Api()
for port in ports:
if is_numerical_port(port.port):
# Port is already numerical
if port.port is None or is_numerical_port(port.port):
# We do not need to resolve a name here
continue

pods = api.list_namespaced_pod(
Expand Down

0 comments on commit 5bb572d

Please sign in to comment.