Skip to content

Commit

Permalink
Backport of Log Warnings When Peering With Mesh Gateway Mode None int…
Browse files Browse the repository at this point in the history
…o release/1.14.x (#15310)

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-consul-core committed Nov 9, 2022
1 parent 11aaa9b commit 5843bef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent/proxycfg/connect_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5843bef

Please sign in to comment.