Skip to content

Clean up status.storedVersions before removing CheCluster v1 from the CRD #24032

Open

Description

@tolusha

Is your task related to a problem? Please describe

Follow-up from eclipse-che/che-operator#2278, which stops serving the deprecated org.eclipse.che/v1 CheCluster API (served: false, storage: false, v2 remains the storage version).

When v1 is eventually removed from the CRD spec.versions, any cluster that still lists v1 in status.storedVersions will reject the CRD update:

spec.versions[] in body must be of type string: "status.storedVersions"

The Kubernetes API server only allows removing a version from spec.versions after it no longer appears in status.storedVersions, i.e. after all stored objects have been re-written (or migrated) to the storage version.

Describe the solution you'd like

Before removing v1 from the CRD:

  1. Add a storage-version migration / storedVersions cleanup step — e.g. a check or job that re-writes remaining v1-stored CheCluster objects as v2 and removes v1 from status.storedVersions (see the Kubernetes storage version migration docs).
  2. Optionally, the operator could log/report a warning while v1 is present in status.storedVersions so administrators know a migration is pending.

Describe alternatives you've considered

Documenting a manual kubectl patch of status.storedVersions — not viable in general, since removing a version from storedVersions while objects are still stored as v1 would make them unreadable.

Additional context

Activity

  1. added
    kind/task
    on Nov 23, 2026
  2. added
    status/need-triage
    on Nov 23, 2026
  3. added
    area/che-operator
    on Nov 23, 2026
  4. added
    severity/P1
    and removed
    status/need-triage
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/che-operatorkind/taskseverity/P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions