Merge "Ensure kubelet pod has default connectivity with Network Policies"

This commit is contained in:
Zuul 2018-12-14 19:11:28 +00:00 committed by Gerrit Code Review
commit 5f2d33d485
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)