config

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

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 GetMaxConcurrentReconciles() (int, error)

func GetResourceQuantityFromEnvVar added in v0.4.0

func GetResourceQuantityFromEnvVar(env string) (*resource.Quantity, error)

func GetWebhooksSecretName

func GetWebhooksSecretName() (string, error)

func GetWorkspaceControllerSA added in v0.10.0

func GetWorkspaceControllerSA() (string, error)

func IsSetUp added in v0.12.3

func IsSetUp() bool

func MigrateConfigFromConfigMap added in v0.11.0

func MigrateConfigFromConfigMap(client crclient.Client) error

func Predicates added in v0.10.0

func Predicates() predicate.Predicate

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

func SetupControllerConfig(client crclient.Client) error

Types

type ControllerEnv

type ControllerEnv struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL