Update proxycfg for ingress service partitions

This commit is contained in:
freddygv 2021-11-08 11:36:09 -07:00
parent e5b7c4713f
commit 0e507492d0

View File

@ -155,7 +155,7 @@ func makeUpstream(g *structs.GatewayService) structs.Upstream {
upstream := structs.Upstream{ upstream := structs.Upstream{
DestinationName: g.Service.Name, DestinationName: g.Service.Name,
DestinationNamespace: g.Service.NamespaceOrDefault(), DestinationNamespace: g.Service.NamespaceOrDefault(),
DestinationPartition: g.Gateway.PartitionOrDefault(), DestinationPartition: g.Service.PartitionOrDefault(),
LocalBindPort: g.Port, LocalBindPort: g.Port,
IngressHosts: g.Hosts, IngressHosts: g.Hosts,
// Pass the protocol that was configured on the ingress listener in order // Pass the protocol that was configured on the ingress listener in order
@ -232,6 +232,7 @@ func (s *handlerIngressGateway) generateIngressDNSSANs(snap *ConfigSnapshot) []s
} }
} }
// TODO(partitions): How should these be updated for partitions?
for ns := range namespaces { for ns := range namespaces {
// The default namespace is special cased in DNS resolution, so special // The default namespace is special cased in DNS resolution, so special
// case it here. // case it here.