b43799eee1
The api module previously had defaultPartition and defaultNamespace vars for when we need default/empty split usage between ent/oss respectively. This commit moves those two variables out of test code so that they can be used for the service exports config entry's `GetNamespace()` method. Previously `GetNamespace()` would return "default" in both OSS and enterprise, which can trip up automation that passes the result of this method as the namespace to write a config entry. The split vars are kept private to prevent external usage, and prefixed with `split` for more clarity about their behavior.
11 lines
315 B
Go
11 lines
315 B
Go
//go:build !consulent
|
|
// +build !consulent
|
|
|
|
package api
|
|
|
|
// The following defaults return "default" in enterprise and "" in OSS.
|
|
// This constant is useful when a default value is needed for an
|
|
// operation that will reject non-empty values in OSS.
|
|
const splitDefaultNamespace = ""
|
|
const splitDefaultPartition = ""
|