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 ErrRunLocal = fmt.Errorf("operator run mode forced to local")
ErrRunLocal indicates that the operator is set to run in local mode (this error is returned by functions that only work on operators running in cluster mode)
View Source
var Options = PolicySpecSyncOptions{}
Options default value
Functions ¶
func GetOperatorNamespace ¶
GetOperatorNamespace returns the namespace the operator should be running in.
func GetWatchNamespace ¶
GetWatchNamespace returns the Namespace the operator should be watching for changes
Types ¶
type PolicySpecSyncOptions ¶
type PolicySpecSyncOptions struct { ClusterNamespaceOnHub string HubConfigFilePathName string ManagedConfigFilePathName string EnableLease bool EnableLeaderElection bool LegacyLeaderElection bool ProbeAddr string }
PolicySpecSyncOptions for command line flag parsing
type RunModeType ¶
type RunModeType string
const ( ForceRunModeEnv = "OSDK_FORCE_RUN_MODE" LocalRunMode RunModeType = "local" ClusterRunMode RunModeType = "cluster" )
Click to show internal directories.
Click to hide internal directories.