Skip to content

Commit

Permalink
Merge pull request #2502 from arghosh93/cherry-pick-2495-to-release-4.16
Browse files Browse the repository at this point in the history
[release-4.16] OCPBUGS-41840: Add configurable subnets while running hybrid-overlay-node binary
  • Loading branch information
openshift-merge-bot[bot] authored Sep 19, 2024
2 parents 32a7e89 + d2643ec commit 5e5e21a
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion bindata/network/ovn-kubernetes/self-hosted/ovnkube-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,32 @@ spec:
--cert-duration={{.NodeIdentityCertDuration}}
"
fi
ovn_v4_join_subnet_opt=
if [[ "{{.V4JoinSubnet}}" != "" ]]; then
ovn_v4_join_subnet_opt="--gateway-v4-join-subnet {{.V4JoinSubnet}}"
fi
ovn_v6_join_subnet_opt=
if [[ "{{.V6JoinSubnet}}" != "" ]]; then
ovn_v6_join_subnet_opt="--gateway-v6-join-subnet {{.V6JoinSubnet}}"
fi

ovn_v4_transit_switch_subnet_opt=
if [[ "{{.V4TransitSwitchSubnet}}" != "" ]]; then
ovn_v4_transit_switch_subnet_opt="--cluster-manager-v4-transit-switch-subnet {{.V4TransitSwitchSubnet}}"
fi
ovn_v6_transit_switch_subnet_opt=
if [[ "{{.V6TransitSwitchSubnet}}" != "" ]]; then
ovn_v6_transit_switch_subnet_opt="--cluster-manager-v6-transit-switch-subnet {{.V6TransitSwitchSubnet}}"
fi

exec /usr/bin/hybrid-overlay-node --node "${K8S_NODE}" \
--config-file=/run/ovnkube-config/ovnkube.conf \
${NETWORK_NODE_IDENTITY_ENABLE}
${NETWORK_NODE_IDENTITY_ENABLE} \
${ovn_v4_join_subnet_opt} \
${ovn_v6_join_subnet_opt} \
${ovn_v4_transit_switch_subnet_opt} \
${ovn_v6_transit_switch_subnet_opt}
fi
{{- end }}
. /ovnkube-lib/ovnkube-lib.sh || exit 1
Expand Down

0 comments on commit 5e5e21a

Please sign in to comment.