Documentation ¶
Overview ¶
Package config is used by components to get configuration.
Typically each configuration property has the default value. Default value is supposed to be overridden via config map.
There is the following configuration names convention: - words are lower-cased - . is used to separate subcomponents - _ is used to separate words in the component name
Index ¶
- Constants
- Variables
- func GetDevModeEnabled() bool
- func GetWebhooksCertName() (string, error)
- func GetWebhooksSecretName() (string, error)
- func SetupConfigForTesting(cm *corev1.ConfigMap)
- func WatchControllerConfig(mgr manager.Manager) error
- type ControllerConfig
- func (wc *ControllerConfig) GetDefaultRoutingClass() string
- func (wc *ControllerConfig) GetDefaultTerminalDockerimage() (*dw.Component, error)
- func (wc *ControllerConfig) GetExperimentalFeaturesEnabled() bool
- func (wc *ControllerConfig) GetPVCStorageClassName() *string
- func (wc *ControllerConfig) GetProperty(name string) *string
- func (wc *ControllerConfig) GetPropertyOrDefault(name string, defaultValue string) string
- func (wc *ControllerConfig) GetRoutingSuffix() string
- func (wc *ControllerConfig) GetSidecarPullPolicy() string
- func (wc *ControllerConfig) GetTlsInsecureSkipVerify() string
- func (wc *ControllerConfig) GetWorkspaceControllerSA() (string, error)
- func (wc *ControllerConfig) GetWorkspaceIdleTimeout() string
- func (wc *ControllerConfig) GetWorkspacePVCName() string
- func (wc *ControllerConfig) Validate() error
- type ControllerEnv
Constants ¶
View Source
const ( ConfigMapNameEnvVar = "CONTROLLER_CONFIG_MAP_NAME" ConfigMapNamespaceEnvVar = "CONTROLLER_CONFIG_MAP_NAMESPACE" )
Variables ¶
View Source
var ConfigMapReference = client.ObjectKey{
Namespace: "",
Name: "devworkspace-controller-configmap",
}
Functions ¶
func GetDevModeEnabled ¶
func GetDevModeEnabled() bool
func GetWebhooksCertName ¶
func GetWebhooksSecretName ¶
func SetupConfigForTesting ¶
func WatchControllerConfig ¶
Types ¶
type ControllerConfig ¶
type ControllerConfig struct {
// contains filtered or unexported fields
}
var ControllerCfg ControllerConfig
func (*ControllerConfig) GetDefaultRoutingClass ¶
func (wc *ControllerConfig) GetDefaultRoutingClass() string
func (*ControllerConfig) GetDefaultTerminalDockerimage ¶
func (wc *ControllerConfig) GetDefaultTerminalDockerimage() (*dw.Component, error)
func (*ControllerConfig) GetExperimentalFeaturesEnabled ¶
func (wc *ControllerConfig) GetExperimentalFeaturesEnabled() bool
GetExperimentalFeaturesEnabled returns true if experimental features should be enabled. DO NOT TURN ON IT IN THE PRODUCTION. Experimental features are not well tested and may be totally removed without announcement.
func (*ControllerConfig) GetPVCStorageClassName ¶
func (wc *ControllerConfig) GetPVCStorageClassName() *string
func (*ControllerConfig) GetProperty ¶
func (wc *ControllerConfig) GetProperty(name string) *string
func (*ControllerConfig) GetPropertyOrDefault ¶
func (wc *ControllerConfig) GetPropertyOrDefault(name string, defaultValue string) string
func (*ControllerConfig) GetRoutingSuffix ¶
func (wc *ControllerConfig) GetRoutingSuffix() string
func (*ControllerConfig) GetSidecarPullPolicy ¶
func (wc *ControllerConfig) GetSidecarPullPolicy() string
func (*ControllerConfig) GetTlsInsecureSkipVerify ¶
func (wc *ControllerConfig) GetTlsInsecureSkipVerify() string
func (*ControllerConfig) GetWorkspaceControllerSA ¶
func (wc *ControllerConfig) GetWorkspaceControllerSA() (string, error)
func (*ControllerConfig) GetWorkspaceIdleTimeout ¶
func (wc *ControllerConfig) GetWorkspaceIdleTimeout() string
func (*ControllerConfig) GetWorkspacePVCName ¶
func (wc *ControllerConfig) GetWorkspacePVCName() string
func (*ControllerConfig) Validate ¶
func (wc *ControllerConfig) Validate() error
type ControllerEnv ¶
type ControllerEnv struct{}
Click to show internal directories.
Click to hide internal directories.