mirror of https://github.com/hashicorp/consul
PR comments
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
|
// Store defaults keyed under wildcard so they can be applied to centrally configured upstreams
|
||||||
if u.DestinationName == structs.WildcardSpecifier {
|
if u.DestinationName == structs.WildcardSpecifier {
|
||||||
snap.ConnectProxy.UpstreamConfig[u.DestinationID().String()] = &u
|
snap.ConnectProxy.UpstreamConfig[u.DestinationID().String()] = &u
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// This can be true if the upstream is a synthetic entry populated from centralized upstream config.
|
// 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 "+
|
"Proxy.DestinationServiceName must be non-empty for Connect proxy "+
|
||||||
"services"))
|
"services"))
|
||||||
}
|
}
|
||||||
if strings.TrimSpace(s.Proxy.DestinationServiceName) == WildcardSpecifier {
|
if s.Proxy.DestinationServiceName == WildcardSpecifier {
|
||||||
result = multierror.Append(result, fmt.Errorf(
|
result = multierror.Append(result, fmt.Errorf(
|
||||||
"Proxy.DestinationServiceName must not be a wildcard for Connect proxy "+
|
"Proxy.DestinationServiceName must not be a wildcard for Connect proxy "+
|
||||||
"services"))
|
"services"))
|
||||||
|
|
Loading…
Reference in New Issue