Documentation ¶
Index ¶
Constants ¶
This section is empty.
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
View Source
var GetOperatorNamespace = func() (string, error) { nsBytes, err := readSAFile() if err != nil { if os.IsNotExist(err) { return "", ErrNoNamespace } return "", err } ns := strings.TrimSpace(string(nsBytes)) return ns, nil }
GetOperatorNamespace returns the namespace the operator should be running in from the associated service account secret.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.