Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ForceRunModeEnv = "OSDK_FORCE_RUN_MODE" ErrNoNamespace = fmt.Errorf("namespace not found for current environment") ErrRunLocal = fmt.Errorf("operator run mode forced to local") )
Functions ¶
func GetOperatorName ¶
GetOperatorName return the operator name
func GetOperatorNamespace ¶
GetOperatorNamespace returns the namespace the operator should be running in.
Types ¶
type RunModeType ¶
type RunModeType string
const ( LocalRunMode RunModeType = "local" ClusterRunMode RunModeType = "cluster" OperatorNameEnvVar = "OPERATOR_NAME" )
Click to show internal directories.
Click to hide internal directories.