Ensure kubelet pod has default connectivity with Network Policies

This patch set ensures kubelet pod has default connectivity when
Network Policies are using the namespace subnet driver

Partially Implements: blueprint k8s-network-policies
 
Change-Id: Icb3144dc90b80e1ae828fd8777866f64fdb7ff6f
This commit is contained in:
Luis Tomas Bolivar 2018-12-11 19:04:03 +01:00
parent a04ab051e7
commit bfbb165029
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ function ovs_bind_for_kubelet() {
cut -f2 -d/)
sudo ip addr add "${port_ips[$i]}/${prefix}" dev "$ifname"
done
if [[ "$KURYR_SG_DRIVER" == "namespace" ]]; then
if [[ "$KURYR_SUBNET_DRIVER" == "namespace" ]]; then
subnetpool_id=${KURYR_NEUTRON_DEFAULT_SUBNETPOOL_ID:-${SUBNETPOOL_V4_ID}}
subnetpool_cidr=$(openstack subnet pool show "${subnetpool_id}" \
-c prefixes -f value | cut -f2)