From 5843befad204794ae4d0b492c2931b8edefd6ead Mon Sep 17 00:00:00 2001 From: hc-github-team-consul-core Date: Wed, 9 Nov 2022 11:49:24 -0500 Subject: [PATCH] Backport of Log Warnings When Peering With Mesh Gateway Mode None into release/1.14.x (#15310) This pull request was automerged via backport-assistant --- agent/proxycfg/connect_proxy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/proxycfg/connect_proxy.go b/agent/proxycfg/connect_proxy.go index 1e244bdff1..416e321ae8 100644 --- a/agent/proxycfg/connect_proxy.go +++ b/agent/proxycfg/connect_proxy.go @@ -292,6 +292,8 @@ func (s *handlerConnectProxy) setupWatchesForPeeredUpstream( } snapConnectProxy.WatchedLocalGWEndpoints.InitWatch(gk.String(), nil) } + } else if mgwMode == structs.MeshGatewayModeNone { + s.logger.Warn(fmt.Sprintf("invalid mesh gateway mode 'none', defaulting to 'remote' for %q", uid)) } return nil }