Documentation ¶
Overview ¶
Copyright (c) 2019-2021 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019-2021 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019-2021 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019-2021 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func ExperimentalFeaturesEnabled() bool
- func GetDevModeEnabled() bool
- func GetMaxConcurrentReconciles() (int, error)
- func GetResourceQuantityFromEnvVar(env string) (*resource.Quantity, error)
- func GetWebhooksSecretName() (string, error)
- func GetWorkspaceControllerSA() (string, error)
- func Predicates() predicate.Predicate
- func SetConfigForTesting(config *controller.OperatorConfiguration)
- func SetupControllerConfig(client crclient.Client) error
- type ControllerEnv
Constants ¶
const ( WebhooksMemLimitEnvVar = "WEBHOOKS_SERVER_MEMORY_LIMIT" WebhooksMemRequestEnvVar = "WEBHOOKS_SERVER_MEMORY_REQUEST" WebhooksCPULimitEnvVar = "WEBHOOKS_SERVER_CPU_LIMIT" WebhooksCPURequestEnvVar = "WEBHOOKS_SERVER_CPU_REQUEST" )
const (
OperatorConfigName = "devworkspace-operator-config"
)
Variables ¶
var ( Routing *controller.RoutingConfig Workspace *controller.WorkspaceConfig )
var DefaultConfig = &v1alpha1.OperatorConfiguration{ Routing: &v1alpha1.RoutingConfig{ DefaultRoutingClass: "basic", ClusterHostSuffix: "", }, Workspace: &v1alpha1.WorkspaceConfig{ ImagePullPolicy: "Always", PVCName: "claim-devworkspace", IdleTimeout: "15m", ProgressTimeout: "5m", }, }
DefaultConfig represents the default configuration for the DevWorkspace Operator.
Functions ¶
func ExperimentalFeaturesEnabled ¶ added in v0.10.0
func ExperimentalFeaturesEnabled() bool
func GetDevModeEnabled ¶
func GetDevModeEnabled() bool
func GetMaxConcurrentReconciles ¶ added in v0.4.0
func GetResourceQuantityFromEnvVar ¶ added in v0.4.0
func GetWebhooksSecretName ¶
func GetWorkspaceControllerSA ¶ added in v0.10.0
func Predicates ¶ added in v0.10.0
func SetConfigForTesting ¶ added in v0.10.0
func SetConfigForTesting(config *controller.OperatorConfiguration)
func SetupControllerConfig ¶ added in v0.10.0
Types ¶
type ControllerEnv ¶
type ControllerEnv struct{}