-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
None
-
False
-
-
Today, hive has several annotations that represents different elements of the cluster's version:
"api.openshift.com/channel-group": "candidate", "api.openshift.com/gate-ocp": "4.13", "hive.openshift.io/version-major": "4", "hive.openshift.io/version-major-minor": "4.14", "hive.openshift.io/version-major-minor-patch": "4.14.0"
Missing here is the pre-release info.
In case a cluster is on "openshift-v4.14.0-ec.4-candidate", the "ec.4" part is not present in the clusterdeployment at all.
With the request from SRE to read the cluster's version directly from the clusterdeployment (OCM-1606), OCM requires the pre-release info to be included in the clusterdeployment.
We prefer to get the complete version as a label:
"hive.openshift.io/version": "openshift-v4.14.0-ec.4-candidate"
This way CS won't require parsing and merging the different pieces of the version, and can get the version exactly as it would be reported in telemeter.