Browse Source

Log Warnings When Peering With Mesh Gateway Mode None (#15304)

warn when mesh gateway mode is set to none for peering
pull/14964/head
Eric Haberkorn 2 years ago committed by GitHub
parent
commit
c340922991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      agent/proxycfg/connect_proxy.go

2
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
}

Loading…
Cancel
Save