Add TODOs about partition handling
This commit is contained in:
parent
3d4fa44c22
commit
b6b42c34dc
|
@ -1870,7 +1870,8 @@ func TestState_WatchesAndUpdates(t *testing.T) {
|
||||||
SNI: connect.ServiceSNI("db", "", structs.IntentionDefaultNamespace, snap.Datacenter, snap.Roots.TrustDomain),
|
SNI: connect.ServiceSNI("db", "", structs.IntentionDefaultNamespace, snap.Datacenter, snap.Roots.TrustDomain),
|
||||||
SpiffeID: connect.SpiffeIDService{
|
SpiffeID: connect.SpiffeIDService{
|
||||||
Host: snap.Roots.TrustDomain,
|
Host: snap.Roots.TrustDomain,
|
||||||
Namespace: structs.IntentionDefaultNamespace,
|
Namespace: db.NamespaceOrDefault(),
|
||||||
|
Partition: db.PartitionOrDefault(),
|
||||||
Datacenter: snap.Datacenter,
|
Datacenter: snap.Datacenter,
|
||||||
Service: "db",
|
Service: "db",
|
||||||
},
|
},
|
||||||
|
|
|
@ -96,7 +96,7 @@ func (s *handlerUpstreams) handleUpdateUpstreams(ctx context.Context, u cache.Up
|
||||||
|
|
||||||
spiffeID := connect.SpiffeIDService{
|
spiffeID := connect.SpiffeIDService{
|
||||||
Host: snap.Roots.TrustDomain,
|
Host: snap.Roots.TrustDomain,
|
||||||
Partition: "",
|
Partition: svc.PartitionOrDefault(),
|
||||||
Namespace: svc.NamespaceOrDefault(),
|
Namespace: svc.NamespaceOrDefault(),
|
||||||
Datacenter: snap.Datacenter,
|
Datacenter: snap.Datacenter,
|
||||||
Service: svc.Name,
|
Service: svc.Name,
|
||||||
|
|
|
@ -540,6 +540,8 @@ func (s *ResourceGenerator) makeUpstreamClusterForPreparedQuery(upstream structs
|
||||||
Namespace: upstream.DestinationNamespace,
|
Namespace: upstream.DestinationNamespace,
|
||||||
Datacenter: dc,
|
Datacenter: dc,
|
||||||
Service: upstream.DestinationName,
|
Service: upstream.DestinationName,
|
||||||
|
|
||||||
|
// TODO(partitions) Store partition
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable TLS upstream with the configured client certificate.
|
// Enable TLS upstream with the configured client certificate.
|
||||||
|
@ -623,6 +625,8 @@ func (s *ResourceGenerator) makeUpstreamClustersForDiscoveryChain(
|
||||||
Namespace: target.Namespace,
|
Namespace: target.Namespace,
|
||||||
Datacenter: target.Datacenter,
|
Datacenter: target.Datacenter,
|
||||||
Service: target.Service,
|
Service: target.Service,
|
||||||
|
|
||||||
|
// TODO(partitions) Store partition
|
||||||
}
|
}
|
||||||
|
|
||||||
if failoverThroughMeshGateway {
|
if failoverThroughMeshGateway {
|
||||||
|
@ -658,6 +662,8 @@ func (s *ResourceGenerator) makeUpstreamClustersForDiscoveryChain(
|
||||||
Namespace: target.Namespace,
|
Namespace: target.Namespace,
|
||||||
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