Log Warnings When Peering With Mesh Gateway Mode None (#15304)
warn when mesh gateway mode is set to none for peering
This commit is contained in:
parent
9e76d274ec
commit
69914f59f7
|
@ -292,6 +292,8 @@ func (s *handlerConnectProxy) setupWatchesForPeeredUpstream(
|
||||||
}
|
}
|
||||||
snapConnectProxy.WatchedLocalGWEndpoints.InitWatch(gk.String(), nil)
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue