Fix is_host_network()
Seems like due to a mistake we've made is_host_network utility function
to always return False. This means that we considered hostNetworking
pods as regular one, ending up creating additional unused ports. Besides
that some anomalies regarding network policy could occur too as function
is used there.
Closes-Bug:
@@ -80,7 +80,7 @@ def get_vifs(pod):
def is_host_network(pod):
- return pod['status'].get('hostNetwork', False)
+ return pod['spec'].get('hostNetwork', False)
def get_pods(selector, namespace=None):
