From f99946553a231ec572cac3658fc206552eb2a681 Mon Sep 17 00:00:00 2001 From: freddygv Date: Tue, 26 Oct 2021 15:42:30 -0600 Subject: [PATCH] Leave todo about default name --- agent/connect/sni.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/connect/sni.go b/agent/connect/sni.go index 867c73b72..2df3e0d11 100644 --- a/agent/connect/sni.go +++ b/agent/connect/sni.go @@ -26,6 +26,7 @@ func UpstreamSNI(u *structs.Upstream, subset string, dc string, trustDomain stri func GatewaySNI(dc string, partition, trustDomain string) string { if partition == "" { + // TODO(partitions) Make default available in OSS as a constant for uses like this one partition = "default" } @@ -39,9 +40,10 @@ func GatewaySNI(dc string, partition, trustDomain string) string { func ServiceSNI(service string, subset string, namespace string, partition string, datacenter string, trustDomain string) string { if namespace == "" { - namespace = "default" + namespace = structs.IntentionDefaultNamespace } if partition == "" { + // TODO(partitions) Make default available in OSS as a constant for uses like this one partition = "default" }