che-operator/pkg/deploy
Angel Misevski 02ce7749f0
Add fields for configuring project clone container to CheCluster CRD (#1687)
* Update devworkspace-operator dependency version to v0.21.0

Update devworkspace-operator dependency to v0.21.0 and update vendor dir

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Add project clone container config field to CheCluster CR

Add field .spec.devEnvironments.projectCloneContainer to allow
configuring image, env, resources, and pull policy for the project clone
container.

This change reuses the existing Container struct for storing this
config, which means that

* The name field is ignored (it appears to be a discriminator for the
  Deployment struct's containers[] field
* Defaults are handled differently:
  * Default imagePullPolicy is the general pull policy for DWO, with
    default value "Always" (instead of depending on tag as documented)
  * Resource requirements set to "0" are interpreted as "do not set this
    field"

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Add reconcile step that syncs CheCluster project clone to DevWorkspace

Sync the field CheCluster.devEnvironments.projectCloneConfig to the
DevWorkspaceOperatorConfig owned by the operator.

Update tests to cover new functionality.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

---------

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2023-05-31 09:58:50 +03:00
..
consolelink chore: Do not set default openVSXURL if operator is being deployed in… (#1544) 2022-10-26 10:00:37 +03:00
container-build feat: Move some defaults out of CheCluster to env variables (#1642) 2023-03-29 09:09:46 +03:00
dashboard feat: Set empty CPU limits when possible (#1686) 2023-05-25 17:20:44 +03:00
dev-workspace-config Add fields for configuring project clone container to CheCluster CRD (#1687) 2023-05-31 09:58:50 +03:00
devfileregistry feat: Set empty CPU limits when possible (#1686) 2023-05-25 17:20:44 +03:00
expose feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
gateway feat: Set empty CPU limits when possible (#1686) 2023-05-25 17:20:44 +03:00
identity-provider chore: Do not set default openVSXURL if operator is being deployed in… (#1544) 2022-10-26 10:00:37 +03:00
image-puller feat: Move some defaults out of CheCluster to env variables (#1642) 2023-03-29 09:09:46 +03:00
migration feat: allow not to set resources requests/limits (#1656) 2023-04-12 15:52:52 +03:00
pluginregistry feat: Set empty CPU limits when possible (#1686) 2023-05-25 17:20:44 +03:00
postgres chore: Remove `spec.components.database` and `status.postgresVersion` fields (#1684) 2023-05-24 09:07:54 +03:00
rbac feat: Allow to configure user custom roles (#1663) 2023-04-21 14:52:05 +03:00
registry fix: probePath for plugin and devfile registries deployments (#1690) 2023-05-26 16:38:15 +03:00
server chore: Add permissions to user to update and patch deployment/service/pvc (#1691) 2023-05-29 09:27:42 +03:00
tls fix: sync should not update labels and annotations for an object (#1649) 2023-03-29 18:40:43 +03:00
checluster.go feat: Move some defaults out of CheCluster to env variables (#1642) 2023-03-29 09:09:46 +03:00
checluster_test.go feat: Move some defaults out of CheCluster to env variables (#1642) 2023-03-29 09:09:46 +03:00
checluster_util.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
checluster_util_test.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
clusterrole.go feat: Automatically add the container build SCC to users if containerBuildCapability is enabled (#1543) 2022-10-20 10:28:07 +03:00
clusterrole_test.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
clusterrolebinding.go feat: Allow to configure user custom roles (#1663) 2023-04-21 14:52:05 +03:00
clusterrolebinding_test.go feat: Allow to configure user custom roles (#1663) 2023-04-21 14:52:05 +03:00
configmap.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
configmap_test.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
defaults.go.update.sh chore: Remove obsolete code after switching to Dev Workspace enabled (#1291) 2022-01-24 09:52:15 +02:00
defaults_test.go chore: Adapt tests for downstream (#1652) 2023-04-04 08:58:40 +03:00
deployment.go fix: NPE in deploy.OverrideDeployment func (#1689) 2023-05-26 12:33:53 +03:00
deployment_test.go fix: NPE in deploy.OverrideDeployment func (#1689) 2023-05-26 12:33:53 +03:00
finalizer.go feat: Allow to configure user custom roles (#1663) 2023-04-21 14:52:05 +03:00
finalizer_test.go feat: Allow to configure user custom roles (#1663) 2023-04-21 14:52:05 +03:00
ingress.go feat: allow to specify IngressClassName (#1669) 2023-04-25 08:50:07 +03:00
ingress_test.go feat: allow to specify IngressClassName (#1669) 2023-04-25 08:50:07 +03:00
init_test.go chore: Do not set default openVSXURL if operator is being deployed in… (#1544) 2022-10-26 10:00:37 +03:00
job.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
job_test.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
labels.go fix: set scc priority to null (#1606) 2023-01-30 07:52:06 +02:00
proxy.go chore: Refactoring (#1411) 2022-06-24 19:34:27 +03:00
proxy_test.go chore: Refactoring (#1411) 2022-06-24 19:34:27 +03:00
pvc.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
pvc_test.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
reconcile_manager.go feat: Allow to configure user custom roles (#1663) 2023-04-21 14:52:05 +03:00
reconcile_manager_test.go feat: Allow to configure user custom roles (#1663) 2023-04-21 14:52:05 +03:00
role.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
role_test.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
rolebinding.go feat: Automatically add the container build SCC to users if containerBuildCapability is enabled (#1543) 2022-10-20 10:28:07 +03:00
rolebinding_test.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
route.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
route_test.go fix: TestRouteSpec test (#1402) 2022-06-13 12:10:03 +03:00
secret.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
secret_test.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
service.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
service_account.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
service_test.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
sync.go feat: Allow to configure user custom roles (#1663) 2023-04-21 14:52:05 +03:00
sync_test.go feat: Allow to configure user custom roles (#1663) 2023-04-21 14:52:05 +03:00