|
1 | 1 | # DevWorkspace Operator Changelog |
| 2 | +# v0.39.0 |
| 3 | +## Features |
| 4 | +### Implement backup feature for DevWorkspaces [#1524](https://github.com/devfile/devworkspace-operator/issues/1524) |
| 5 | +An automated backup mechanism is now available for non-ephemeral DevWorkspaces. The backup feature can be configured through the DevWorkspaceOperatorConfig to periodically backup workspace `/project` content. |
| 6 | + |
| 7 | +The backup process: |
| 8 | +- Identifies stopped DevWorkspaces from a configurable time period |
| 9 | +- Creates a Job in the user's namespace to generate a container image containing `/projects` from the DevWorkspace's PVC |
| 10 | +- Pushes the backup image to an external image registry |
| 11 | + |
| 12 | +See [docs/dwo-configuration.md](docs/dwo-configuration.md#configuring-backup-cronjob) for configuration details. |
| 13 | + |
| 14 | +### Add the ability to configure custom init containers [#1559](https://github.com/devfile/devworkspace-operator/issues/1559) |
| 15 | +Cluster administrators can now configure custom init containers for DevWorkspaces in the DevWorkspaceOperatorConfig. |
| 16 | + |
| 17 | +Example use cases are: |
| 18 | +- Injecting custom configuration and tools |
| 19 | +- Overriding the built-in `init-persistent-home` logic by providing a custom container with the same name |
| 20 | + |
| 21 | +Example configuration: |
| 22 | +```yaml |
| 23 | +apiVersion: controller.devfile.io/v1alpha1 |
| 24 | +kind: DevWorkspaceOperatorConfig |
| 25 | +metadata: |
| 26 | + name: devworkspace-operator-config |
| 27 | +config: |
| 28 | + workspace: |
| 29 | + initContainers: |
| 30 | + - name: install-tools |
| 31 | + image: custom-image:latest |
| 32 | + command: ["/bin/sh", "-c"] |
| 33 | + args: |
| 34 | + - | |
| 35 | + echo "Setting up custom tools" |
| 36 | + mkdir -p /home/user/custom-tools |
| 37 | +``` |
| 38 | +See [docs/dwo-configuration.md](docs/dwo-configuration.md#configuring-custom-init-containers) for configuration details. |
| 39 | +### Add container resource caps enforcement [#1561](https://github.com/devfile/devworkspace-operator/issues/1561) |
| 40 | +Administrators can now set maximum resource limits and requests for workspace containers through the DevWorkspaceOperatorConfig. This prevents users from creating DevWorkspaces with excessive CPU or memory requirements. |
| 41 | +
|
| 42 | +Example configuration: |
| 43 | +```yaml |
| 44 | +apiVersion: controller.devfile.io/v1alpha1 |
| 45 | +kind: DevWorkspaceOperatorConfig |
| 46 | +metadata: |
| 47 | + name: devworkspace-operator-config |
| 48 | +config: |
| 49 | + workspace: |
| 50 | + containerResourceCaps: |
| 51 | + limits: |
| 52 | + cpu: "1" |
| 53 | + memory: 2Gi |
| 54 | + requests: |
| 55 | + cpu: "0.1" |
| 56 | + memory: 100Mi |
| 57 | +``` |
| 58 | +
|
| 59 | +When a container specifies resource requirements exceeding the caps, they will be limited to the configured maximum values. |
| 60 | +
|
| 61 | +## Bug Fixes & Improvements |
| 62 | +- Fix project clone image missing UID 1234 in /etc/passwd [#1560](https://github.com/devfile/devworkspace-operator/issues/1560) |
| 63 | +
|
2 | 64 | # v0.38.0 |
3 | 65 | ## Features |
4 | 66 | ### Improved debugging for failing postStart commands [#1538](https://github.com/devfile/devworkspace-operator/issues/1538) |
|
0 commit comments