Documentation
¶
Index ¶
Constants ¶
View Source
const (
NamespaceEnvVar = "POD_NAMESPACE"
)
Variables ¶
View Source
var ErrNoNamespace = fmt.Errorf("namespace not found for current environment")
ErrNoNamespace indicates that a namespace could not be found for the current environment
Functions ¶
func GetOperatorNamespace ¶
GetOperatorNamespace returns the namespace the operator should be running in. add this environment variable in your deployment config
- name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.