mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
Leave todo about default name
This commit is contained in:
parent
5bf2497f71
commit
327e6bff25
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user