From 848216ff58f998061262a4c8914c5d45096df9e4 Mon Sep 17 00:00:00 2001 From: Saeed Padari Date: Mon, 22 Sep 2025 00:43:54 +0330 Subject: [PATCH] feat(neutron): Support for custom OVN connections Change-Id: Iffb1b6bb6724c5e9e3310338f88ce3624e32fe21 Signed-off-by: Saeed Padari --- neutron/templates/bin/_neutron-ovn-init.sh.tpl | 4 ++-- releasenotes/notes/neutron-2bb975307f0d27f2.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/neutron-2bb975307f0d27f2.yaml diff --git a/neutron/templates/bin/_neutron-ovn-init.sh.tpl b/neutron/templates/bin/_neutron-ovn-init.sh.tpl index b8a0a7889b..ae2ede05d6 100644 --- a/neutron/templates/bin/_neutron-ovn-init.sh.tpl +++ b/neutron/templates/bin/_neutron-ovn-init.sh.tpl @@ -20,6 +20,6 @@ set -ex mkdir -p /tmp/pod-shared tee > /tmp/pod-shared/ovn.ini << EOF [ovn] -ovn_nb_connection=tcp:$OVN_OVSDB_NB_SERVICE_HOST:$OVN_OVSDB_NB_SERVICE_PORT_OVSDB -ovn_sb_connection=tcp:$OVN_OVSDB_SB_SERVICE_HOST:$OVN_OVSDB_SB_SERVICE_PORT_OVSDB +ovn_nb_connection={{ coalesce .Values.conf.plugins.ml2_conf.ovn.ovn_nb_connection "tcp:$OVN_OVSDB_NB_SERVICE_HOST:$OVN_OVSDB_NB_SERVICE_PORT_OVSDB" }} +ovn_sb_connection={{ coalesce .Values.conf.plugins.ml2_conf.ovn.ovn_sb_connection "tcp:$OVN_OVSDB_SB_SERVICE_HOST:$OVN_OVSDB_SB_SERVICE_PORT_OVSDB" }} EOF diff --git a/releasenotes/notes/neutron-2bb975307f0d27f2.yaml b/releasenotes/notes/neutron-2bb975307f0d27f2.yaml new file mode 100644 index 0000000000..496aa92a82 --- /dev/null +++ b/releasenotes/notes/neutron-2bb975307f0d27f2.yaml @@ -0,0 +1,10 @@ +--- +neutron: + - | + Added the ability to configure custom OVN Northbound (ovn_nb_connection) and + Southbound (ovn_sb_connection) connection strings + (e.g., for deployments using Kube-OVN or external OVN databases). + By default, the chart continues to use the in-cluster service environment + This change provides flexibility to support both default in-cluster OVN and + custom/external OVN backends seamlessly. +...