From 0cdcbbb4c9c2f73a2f0aa5593a0f66e77d727a21 Mon Sep 17 00:00:00 2001 From: freddygv Date: Tue, 14 Sep 2021 22:27:39 -0600 Subject: [PATCH] Pass partition to intention match query --- agent/proxycfg/connect_proxy.go | 1 + agent/proxycfg/terminating_gateway.go | 1 + 2 files changed, 2 insertions(+) diff --git a/agent/proxycfg/connect_proxy.go b/agent/proxycfg/connect_proxy.go index 250b88705..2d2762730 100644 --- a/agent/proxycfg/connect_proxy.go +++ b/agent/proxycfg/connect_proxy.go @@ -59,6 +59,7 @@ func (s *handlerConnectProxy) initialize(ctx context.Context) (ConfigSnapshot, e Entries: []structs.IntentionMatchEntry{ { Namespace: s.proxyID.NamespaceOrDefault(), + Partition: s.proxyID.PartitionOrDefault(), Name: s.proxyCfg.DestinationServiceName, }, }, diff --git a/agent/proxycfg/terminating_gateway.go b/agent/proxycfg/terminating_gateway.go index 1b9b327b2..4018c7801 100644 --- a/agent/proxycfg/terminating_gateway.go +++ b/agent/proxycfg/terminating_gateway.go @@ -121,6 +121,7 @@ func (s *handlerTerminatingGateway) handleUpdate(ctx context.Context, u cache.Up Entries: []structs.IntentionMatchEntry{ { Namespace: svc.Service.NamespaceOrDefault(), + Partition: svc.Service.PartitionOrDefault(), Name: svc.Service.Name, }, },