Add Label for CRD

Description

As of now, there is no way to know the Operator version linked to the CRD present in etcd.Some of the ways to identify it are to know the fields modified and validate it manually. As the version of API remains the same and only fields get added, It helps user to have a way to identify the operator version linked to it.

Some of the possibilities to embed operator version are as follows

  1. spec

  2. status

  3. Annotations

  4. Labels.

End result of this is to run a command like kubectl get crd perconaservermongodbs.psmdb.percona.com --<options> and get operator version.

I believe OLM adds labels for the CRD, this also needs to be taken care of as Everest uses OLM.

FYI

Environment

None

Activity

Show:

Slava Sarzhan February 26, 2025 at 2:01 PM

We can add label like ppsmdb.percona.com/version: v1.21.0

Aaditya Dubey February 24, 2025 at 7:39 AM

Hi

Thank you for the report and feedback.

Details

Assignee

Reporter

Needs QA

Yes

Fix versions

Priority

Smart Checklist

Created February 11, 2025 at 6:37 PM
Updated February 26, 2025 at 2:06 PM

Flag notifications