mirror of https://github.com/status-im/consul.git
PR comments
This commit is contained in:
parent
ab752c1c86
commit
b21224a4c8
|
@ -336,6 +336,7 @@ func (s *state) initWatchesConnectProxy(snap *ConfigSnapshot) error {
|
|||
// Store defaults keyed under wildcard so they can be applied to centrally configured upstreams
|
||||
if u.DestinationName == structs.WildcardSpecifier {
|
||||
snap.ConnectProxy.UpstreamConfig[u.DestinationID().String()] = &u
|
||||
continue
|
||||
}
|
||||
|
||||
// This can be true if the upstream is a synthetic entry populated from centralized upstream config.
|
||||
|
|
|
@ -1153,7 +1153,7 @@ func (s *NodeService) Validate() error {
|
|||
"Proxy.DestinationServiceName must be non-empty for Connect proxy "+
|
||||
"services"))
|
||||
}
|
||||
if strings.TrimSpace(s.Proxy.DestinationServiceName) == WildcardSpecifier {
|
||||
if s.Proxy.DestinationServiceName == WildcardSpecifier {
|
||||
result = multierror.Append(result, fmt.Errorf(
|
||||
"Proxy.DestinationServiceName must not be a wildcard for Connect proxy "+
|
||||
"services"))
|
||||
|
|
Loading…
Reference in New Issue