Browse Source

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
changes/78/757078/4
liujinxin 6 months ago
committed by Michał Dulko
parent
commit
402df1e8e1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      kuryr_kubernetes/controller/drivers/utils.py

+ 1
- 1
kuryr_kubernetes/controller/drivers/utils.py View File

@ -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):


Loading…
Cancel
Save