-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add a conversion hook to ensure CRD apis can be converted from v1alphav1 to v1 #88
Comments
Looking into this, the evidence indicates that a conversion webhook is unnecessary for the dropping of the
The resulting data will indicate show: Therefore, this indicates that a new The remaining question is whether an existing Hawtio CR that is already installed on a cluster under the v1alpha1 CRD, upgraded in the same manner when the new v1 CRD is installed. At this point, looking at the history of other projects, the initial answer to this question is that this is the case. |
@phantomjinx So do you say that all these happen because we still keep |
@tadayosi |
@phantomjinx So, if the user deploys an old CR with |
Thinking about this some more ... There would be 2 issues with this use-case:
|
I still don't see why we need
Isn't it just a matter of writing some migration guide from Fuse Console to Hawtio Online v2? Probably 100% automated migration experience wouldn't be expected. |
Once the CRD is installed, the
Sure. No problem with doing that. |
Use case 2Install fuse-console via catalog / operator then upgrade the CRD to ResultIf fuse-console is already installed by the operator then no errors occur either in the operator or application. However, points to note:
While the |
Since one version of a CRD api can be stored in the etcd, other versions are converted into this version. Without a conversion hook, the only migration that takes place is the api version number. In order to facilitate the conversion of properties then a conversion hook should be added and broadcast to the cluster.
Reference: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/#before-you-begin
The text was updated successfully, but these errors were encountered: