PR comments

This commit is contained in:
freddygv 2021-04-08 11:16:03 -06:00
parent ab752c1c86
commit b21224a4c8
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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"))