mirror of https://github.com/status-im/consul.git
Ensure partition is used for SAN validation
This commit is contained in:
parent
7ecbac9228
commit
9cd30e8650
|
@ -639,10 +639,9 @@ func (s *ResourceGenerator) makeUpstreamClustersForDiscoveryChain(
|
||||||
targetSpiffeID := connect.SpiffeIDService{
|
targetSpiffeID := connect.SpiffeIDService{
|
||||||
Host: cfgSnap.Roots.TrustDomain,
|
Host: cfgSnap.Roots.TrustDomain,
|
||||||
Namespace: target.Namespace,
|
Namespace: target.Namespace,
|
||||||
|
Partition: target.Partition,
|
||||||
Datacenter: target.Datacenter,
|
Datacenter: target.Datacenter,
|
||||||
Service: target.Service,
|
Service: target.Service,
|
||||||
|
|
||||||
// TODO(partitions) Store partition
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if failoverThroughMeshGateway {
|
if failoverThroughMeshGateway {
|
||||||
|
@ -676,10 +675,9 @@ func (s *ResourceGenerator) makeUpstreamClustersForDiscoveryChain(
|
||||||
id := connect.SpiffeIDService{
|
id := connect.SpiffeIDService{
|
||||||
Host: cfgSnap.Roots.TrustDomain,
|
Host: cfgSnap.Roots.TrustDomain,
|
||||||
Namespace: target.Namespace,
|
Namespace: target.Namespace,
|
||||||
|
Partition: target.Partition,
|
||||||
Datacenter: target.Datacenter,
|
Datacenter: target.Datacenter,
|
||||||
Service: target.Service,
|
Service: target.Service,
|
||||||
|
|
||||||
// TODO(partitions) Store partition
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Failover targets might be subsets of the same service, so these are deduplicated.
|
// Failover targets might be subsets of the same service, so these are deduplicated.
|
||||||
|
|
Loading…
Reference in New Issue