Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable provider operator API to use version other than v1beta1 for DBaaS integration #358

Open
jianrongzhang89 opened this issue Mar 30, 2023 · 0 comments

Comments

@jianrongzhang89
Copy link
Collaborator

Currently, the provider API of any new provider operator for integration with OpenShift Database Access (DBaaS) must have the domain "dbaas.redhat.com" and version "v1beta1". This is because DBaaS Operator needs to create provider Customer Resources for the corresponding DBaaSInventory, DBaaSInstance, and DBaaSConnection CRs and watch their status. In order to create such objects, it needs to know:
a) The DBaaS API version (v1alpha1 or v1beta1) the provider operator supports. This version is specified in the provider registration CR in the groupVersion field:
https://github.com/RHEcosystemAppEng/dbaas-operator/blob/main/api/v1beta1/dbaasprovider.go#L120
Note that for any new provider operators, v1beta1 is recommended as v1alpha1 will be deprecated later.
b) The provider operator API group version. It has to be "dbaas.redhat.com/v1beta1' currently.

This issue is to allow the provider operator to use a version other than v1beta1 for its API. It can be achieved by adding a providerGroupVersion field to the provider registration CR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant