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: 1899182 Change-Id: I0dade137b83499c80ec81cadf6437ea4e70d02c1
This commit is contained in:
parent
f508b9bae5
commit
402df1e8e1
@ -80,7 +80,7 @@ def get_vifs(pod):
|
|||||||
|
|
||||||
|
|
||||||
def is_host_network(pod):
|
def is_host_network(pod):
|
||||||
return pod['status'].get('hostNetwork', False)
|
return pod['spec'].get('hostNetwork', False)
|
||||||
|
|
||||||
|
|
||||||
def get_pods(selector, namespace=None):
|
def get_pods(selector, namespace=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user