From 01859ffacf3f4fc6cdc20198567e32c6bc4f7015 Mon Sep 17 00:00:00 2001 From: Carl Montanari Date: Tue, 24 Dec 2024 10:16:55 -0800 Subject: [PATCH] fix: regression for docker bridge gw check on darwin dind --- runtime/docker/docker.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/runtime/docker/docker.go b/runtime/docker/docker.go index 15ccaddf6..3e450b2b4 100644 --- a/runtime/docker/docker.go +++ b/runtime/docker/docker.go @@ -320,7 +320,13 @@ func getMgmtBridgeIPs(bridgeName string, netResource networkapi.Inspect) (string } } } - return v4, v6, err + + // didnt find any gateways, fallthrough to returning the error + if v4 == "" && v6 == "" { + return "", "", err + } + + return v4, v6, nil } // postCreateNetActions performs additional actions after the network has been created.