From 0ee814ec9bbbb16b8f93120827d3ad16378cacdd Mon Sep 17 00:00:00 2001 From: Bohdan Dobrelia Date: Fri, 6 Mar 2026 11:32:34 +0100 Subject: [PATCH] network: respect pre-set API_VIPS and INGRESS_VIPS When API_VIPS and INGRESS_VIPS are already set in the environment (e.g. via config_$USER.sh), skip the dig lookups and dnsmasq reconfiguration in set_api_and_ingress_vip(). This is needed for bare-metal deployments where dnsmasq is not yet running when network.sh executes, causing the dig lookups to fail and leaving the VIPs empty in install-config.yaml. Generated-By: Cursor (claude-4.6-opus-high) Signed-off-by: Bohdan Dobrelia --- network.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/network.sh b/network.sh index 53ad11cb9..e7e0e3488 100755 --- a/network.sh +++ b/network.sh @@ -321,6 +321,7 @@ function configure_dnsmasq() { } function set_api_and_ingress_vip() { + if [[ -n "${API_VIPS:-}" ]] && [[ -n "${INGRESS_VIPS:-}" ]]; then return; fi # NOTE: This is equivalent to the external API DNS record pointing the API to the API VIP if [ "$MANAGE_BR_BRIDGE" == "y" ] ; then get_vips