mirror of https://github.com/hashicorp/consul
Fixup prepared query ns defaulting
parent
066e950b7d
commit
803df59268
|
@ -535,9 +535,14 @@ func (s *ResourceGenerator) makeUpstreamClusterForPreparedQuery(upstream structs
|
|||
}
|
||||
}
|
||||
|
||||
ns := upstream.DestinationNamespace
|
||||
if ns == "" {
|
||||
ns = structs.IntentionDefaultNamespace
|
||||
}
|
||||
|
||||
spiffeID := connect.SpiffeIDService{
|
||||
Host: cfgSnap.Roots.TrustDomain,
|
||||
Namespace: upstream.DestinationNamespace,
|
||||
Namespace: ns,
|
||||
Datacenter: dc,
|
||||
Service: upstream.DestinationName,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue