{"modulePath":"github.com/devfile/devworkspace-operator","version":"v1.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\n## Constants\n\n```go\nconst (\n\tWebhooksMemLimitEnvVar   = \"WEBHOOKS_SERVER_MEMORY_LIMIT\"\n\tWebhooksMemRequestEnvVar = \"WEBHOOKS_SERVER_MEMORY_REQUEST\"\n\tWebhooksCPULimitEnvVar   = \"WEBHOOKS_SERVER_CPU_LIMIT\"\n\tWebhooksCPURequestEnvVar = \"WEBHOOKS_SERVER_CPU_REQUEST\"\n)\n```\n\n```go\nconst (\n\tOperatorConfigName = \"devworkspace-operator-config\"\n)\n```\n\n## Functions\n\n```go\nfunc ExperimentalFeaturesEnabled() bool\n```\n\n```go\nfunc GetConfigForTesting(customConfig *controller.OperatorConfiguration) *controller.OperatorConfiguration\n```\n\n```go\nfunc GetCurrentConfigString(currConfig *controller.OperatorConfiguration) string\n```\n\n```go\nfunc GetDefaultNetworkPolicy(operatorNamespace string) (\n\t[]networkingv1.NetworkPolicyIngressRule,\n\t[]networkingv1.NetworkPolicyEgressRule,\n\terror,\n)\n```\nGetDefaultNetworkPolicy returns the default NetworkPolicy applied to DevWorkspace pods. It is exposed publicly for other operators (such as che-operator) that need to read and extend the default rules rather than hardcoding or duplicating them.\n\n```go\nfunc GetDevModeEnabled() bool\n```\n\n```go\nfunc GetGlobalConfig() *controller.OperatorConfiguration\n```\n\n```go\nfunc GetMaxConcurrentReconciles() (int, error)\n```\n\n```go\nfunc GetResourceQuantityFromEnvVar(env string) (*resource.Quantity, error)\n```\n\n```go\nfunc GetWebhooksSecretName() (string, error)\n```\n\n```go\nfunc GetWorkspaceControllerSA() (string, error)\n```\n\n```go\nfunc IsSetUp() bool\n```\n\n```go\nfunc MigrateConfigFromConfigMap(client crclient.Client) error\n```\n\n```go\nfunc Predicates() predicate.Predicate\n```\n\n```go\nfunc ResolveConfigForWorkspace(workspace *dw.DevWorkspace, client crclient.Client) (*controller.OperatorConfiguration, error)\n```\nResolveConfigForWorkspace 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.\n\n```go\nfunc SetGlobalConfigForTesting(testConfig *controller.OperatorConfiguration)\n```\n\n```go\nfunc SetupControllerConfig(client crclient.Client) error\n```\n\n## Types\n\n```go\ntype ControllerEnv struct{}\n```\n\n","path":"github.com/devfile/devworkspace-operator/pkg/config","name":"config","synopsis":"","isRedistributable":true}
