Documentation ¶
Overview ¶
Package namespaces handles interaction with Consul namespaces needed across commands.
Index ¶
Constants ¶
View Source
const ( WildcardNamespace = "*" DefaultNamespace = "default" )
Variables ¶
This section is empty.
Functions ¶
func ConsulNamespace ¶
func ConsulNamespace(kubeNS string, enableConsulNamespaces bool, consulDestNS string, enableMirroring bool, mirroringPrefix string) string
ConsulNamespace returns the consul namespace that a service should be registered in based on the namespace options. It returns an empty string if namespaces aren't enabled.
func EnsureExists ¶
EnsureExists ensures a Consul namespace with name ns exists. If it doesn't, it will create it and set crossNSACLPolicy as a policy default. Boolean return value indicates if the namespace was created by this call.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.