Skip to content

Add configuration to automatically set controller.devfile.io/devworkspace_id_override #1571

@dkwon17

Description

@dkwon17

Description

We should consider adding some kind of field in the DWOC:

workspace:
  setIdOverwriteAnnotation: true|false

where if enabled, the DWO will automatically set the controller.devfile.io/devworkspace_id_override annotation in the DevWorkspace CR spec to status.workspaceId.

The main benefit of this, is that if the DevWorkspace CR were to be deleted and recreated, the status.workspaceId will remain the same as before the deletion, thanks to the constants.WorkspaceIdOverrideAnnotation.

Additional context

This allows better integration with OADP backup and restore https://issues.redhat.com/browse/CRW-9513.

Since per-workspace and per-user PVCs are tied to workspaceIds (ex. per-workspace PVCs are named storage-<workspaceId>), having predictable workspaceIds are helpful for the restore functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions