Skip to content

Commit 25e9db2

Browse files
Merge pull request #2607 from openshift-cherrypick-robot/cherry-pick-2587-to-release-4.14
[release-4.14] OCPBUGS-47320: Pass transit_switch_subnet options in ovnkube-node pod
2 parents 3c4bce8 + 7983a16 commit 25e9db2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

bindata/network/ovn-kubernetes/common/008-script-lib.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,15 @@ data:
584584
ovn_v6_join_subnet_opt="--gateway-v6-join-subnet {{.V6JoinSubnet}}"
585585
fi
586586

587+
ovn_v4_transit_switch_subnet_opt=
588+
if [[ "{{.V4TransitSwitchSubnet}}" != "" ]]; then
589+
ovn_v4_transit_switch_subnet_opt="--cluster-manager-v4-transit-switch-subnet {{.V4TransitSwitchSubnet}}"
590+
fi
591+
ovn_v6_transit_switch_subnet_opt=
592+
if [[ "{{.V6TransitSwitchSubnet}}" != "" ]]; then
593+
ovn_v6_transit_switch_subnet_opt="--cluster-manager-v6-transit-switch-subnet {{.V6TransitSwitchSubnet}}"
594+
fi
595+
587596
exec /usr/bin/ovnkube \
588597
--init-ovnkube-controller "${K8S_NODE}" \
589598
--init-node "${K8S_NODE}" \
@@ -615,5 +624,7 @@ data:
615624
${ip_forwarding_flag} \
616625
${NETWORK_NODE_IDENTITY_ENABLE} \
617626
${ovn_v4_join_subnet_opt} \
618-
${ovn_v6_join_subnet_opt}
627+
${ovn_v6_join_subnet_opt} \
628+
${ovn_v4_transit_switch_subnet_opt} \
629+
${ovn_v6_transit_switch_subnet_opt}
619630
}

0 commit comments

Comments
 (0)