che-operator/api/v2
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
..
checluster_conversion.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
checluster_types.go Add fields for configuring project clone container to CheCluster CRD (#1687) 2023-05-31 09:58:50 +03:00
checluster_types_test.go feat(oauth-proxy): configuration enhancements for k8s config (#1400) 2022-06-22 09:51:43 +03:00
checluster_webhook.go feat: Move some defaults out of CheCluster to env variables (#1642) 2023-03-29 09:09:46 +03:00
groupversion_info.go feat: CheCluster API v2 (#1324) 2022-06-09 11:35:01 +03:00
zz_generated.deepcopy.go Add fields for configuring project clone container to CheCluster CRD (#1687) 2023-05-31 09:58:50 +03:00