Leave todo about default name

This commit is contained in:
freddygv 2021-10-26 15:42:30 -06:00
parent 5bf2497f71
commit 327e6bff25

View File

@ -26,6 +26,7 @@ func UpstreamSNI(u *structs.Upstream, subset string, dc string, trustDomain stri
func GatewaySNI(dc string, partition, trustDomain string) string { func GatewaySNI(dc string, partition, trustDomain string) string {
if partition == "" { if partition == "" {
// TODO(partitions) Make default available in OSS as a constant for uses like this one
partition = "default" 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 { func ServiceSNI(service string, subset string, namespace string, partition string, datacenter string, trustDomain string) string {
if namespace == "" { if namespace == "" {
namespace = "default" namespace = structs.IntentionDefaultNamespace
} }
if partition == "" { if partition == "" {
// TODO(partitions) Make default available in OSS as a constant for uses like this one
partition = "default" partition = "default"
} }