You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently added a new apiVersion to our operator so our ClusterServiceVersion provides metadata for both v1beta1 and v1beta2 CRDs. On OCP 4.5 this leads to some interesting (and undesireable) behavior in the Operator UI.
In our v1beta1 API group, we have a single CRD: DataPowerService.
In our v1beta2 API group, we have two CRDs: DataPowerService and DataPowerMonitor.
In the UI, there are two tabs rendered for DataPowerService, one for each API version.
This is undesirable, because v1beta2 is our stored version. We don't really want users creating v1beta1 CRs, and if they do they'll be converted to v1beta2 and persisted at that version.
It would be ideal if we could (through CSV metadata hopefully) disable certain apiVersions from showing in the UI. Our operator still of course needs to know about the older versions, and the DataPowerService CRD itself does need to include both versioned schemas to support conversion etc., but there's no reason (in my opinion) for there to be a v1beta1 CRD tab in the UI.
The text was updated successfully, but these errors were encountered:
Normally, yes we could hide a provided API and the corresponding instance list tab using the 'operators.operatorframework.io/internal-objects' annotation. But, this would be an interesting case because that annotation only accepts a CRD name. So, if we add the DataPowerService to it, I believe all of the provided API cards and instance tabs would be hidden, not just a specific API version. We would need to add the ability to provide API version along with CRD name in that annotation in order to support hiding only a specific version. That or we add some other logic where we only show the latest API version of each CRD.
We recently added a new
apiVersion
to our operator so ourClusterServiceVersion
provides metadata for bothv1beta1
andv1beta2
CRDs. On OCP 4.5 this leads to some interesting (and undesireable) behavior in the Operator UI.In our
v1beta1
API group, we have a single CRD:DataPowerService
.In our
v1beta2
API group, we have two CRDs:DataPowerService
andDataPowerMonitor
.In the UI, there are two tabs rendered for
DataPowerService
, one for each API version.This is undesirable, because
v1beta2
is our stored version. We don't really want users creatingv1beta1
CRs, and if they do they'll be converted tov1beta2
and persisted at that version.It would be ideal if we could (through CSV metadata hopefully) disable certain
apiVersions
from showing in the UI. Our operator still of course needs to know about the older versions, and theDataPowerService
CRD itself does need to include both versioned schemas to support conversion etc., but there's no reason (in my opinion) for there to be av1beta1
CRD tab in the UI.The text was updated successfully, but these errors were encountered: