mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Update proxycfg for ingress service partitions
This commit is contained in:
parent
e5b7c4713f
commit
0e507492d0
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user