Fixup prepared query ns defaulting

pull/10622/head
freddygv 3 years ago
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…
Cancel
Save