Documentation ¶
Index ¶
- Constants
- func ExperimentalFeaturesEnabled() bool
- func GetConfigForTesting(customConfig *controller.OperatorConfiguration) *controller.OperatorConfiguration
- func GetCurrentConfigString(currConfig *controller.OperatorConfiguration) string
- func GetDevModeEnabled() bool
- func GetGlobalConfig() *controller.OperatorConfiguration
- func GetMaxConcurrentReconciles() (int, error)
- func GetResourceQuantityFromEnvVar(env string) (*resource.Quantity, error)
- func GetWebhooksSecretName() (string, error)
- func GetWorkspaceControllerSA() (string, error)
- func IsSetUp() bool
- func MigrateConfigFromConfigMap(client crclient.Client) error
- func Predicates() predicate.Predicate
- func ResolveConfigForWorkspace(workspace *dw.DevWorkspace, client crclient.Client) (*controller.OperatorConfiguration, error)
- func SetGlobalConfigForTesting(testConfig *controller.OperatorConfiguration)
- func SetupControllerConfig(client crclient.Client) error
- type ControllerEnv
Constants ¶
View Source
const ( WebhooksMemLimitEnvVar = "WEBHOOKS_SERVER_MEMORY_LIMIT" WebhooksMemRequestEnvVar = "WEBHOOKS_SERVER_MEMORY_REQUEST" WebhooksCPULimitEnvVar = "WEBHOOKS_SERVER_CPU_LIMIT" WebhooksCPURequestEnvVar = "WEBHOOKS_SERVER_CPU_REQUEST" )
View Source
const (
OperatorConfigName = "devworkspace-operator-config"
)
Variables ¶
This section is empty.
Functions ¶
func ExperimentalFeaturesEnabled ¶ added in v0.10.0
func ExperimentalFeaturesEnabled() bool
func GetConfigForTesting ¶ added in v0.16.0
func GetConfigForTesting(customConfig *controller.OperatorConfiguration) *controller.OperatorConfiguration
func GetCurrentConfigString ¶ added in v0.16.0
func GetCurrentConfigString(currConfig *controller.OperatorConfiguration) string
func GetDevModeEnabled ¶
func GetDevModeEnabled() bool
func GetGlobalConfig ¶ added in v0.16.0
func GetGlobalConfig() *controller.OperatorConfiguration
func GetMaxConcurrentReconciles ¶ added in v0.4.0
func GetResourceQuantityFromEnvVar ¶ added in v0.4.0
func GetWebhooksSecretName ¶
func GetWorkspaceControllerSA ¶ added in v0.10.0
func MigrateConfigFromConfigMap ¶ added in v0.11.0
func Predicates ¶ added in v0.10.0
func ResolveConfigForWorkspace ¶ added in v0.16.0
func ResolveConfigForWorkspace(workspace *dw.DevWorkspace, client crclient.Client) (*controller.OperatorConfiguration, error)
ResolveConfigForWorkspace returns the resulting config from merging the global DevWorkspaceOperatorConfig with the DevWorkspaceOperatorConfig specified by the optional workspace attribute `controller.devfile.io/devworkspace-config`. If the `controller.devfile.io/devworkspace-config` is not set, the global DevWorkspaceOperatorConfig is returned. If the `controller.devfile.io/devworkspace-config` attribute is incorrectly set, or the specified DevWorkspaceOperatorConfig does not exist on the cluster, an error is returned.
func SetGlobalConfigForTesting ¶ added in v0.18.0
func SetGlobalConfigForTesting(testConfig *controller.OperatorConfiguration)
func SetupControllerConfig ¶ added in v0.10.0
Types ¶
type ControllerEnv ¶
type ControllerEnv struct{}
Click to show internal directories.
Click to hide internal directories.