Open WillNilges opened 2 years ago
Upon attempting to re-install from the OperatorHub, I get this error on the Subscription page
risk of data loss updating "imagepolicies.image.toolkit.fluxcd.io": new CRD removes version v1alpha1 that is listed as a stored version on the existing CRD
Uninstalled Flux via FluxCLI with flux uninstall
and re-installed via the OperatorHub. That seems to have worked :)
Thanks @WillNilges for helping us trace down this issue!
The upgrade should be seamless, I'm not sure how we can address this issue in a future release to prevent this error, or if it's possible to bypass that error somehow else without uninstalling. (Maybe we can add upgrade testing to our validation plan?)
I'm making a lot of assumptions, but I believe that this is caused by the final deprecation of the v1alpha
APIs that came in Flux v0.37, and that it won't happen again. The v1alpha APIs required a manual translation into v1beta in a much earlier version of Flux, such that there was no translator requirement to ensure that v1alpha APIs are automatically upgraded into beta when the new API version comes out.
But beta APIs have a higher guarantee level for production readiness in Kubernetes and in Flux. So the deprecation of alpha APIs is a signal that the General Availability release is coming soon 🎉 which means I think this will not happen again.
I think a manual upgrade of the CRDs might have also worked around this issue. I don't think OLM is being too conservative here, I think that it's probably unusual for operators that are still based on prerelease APIs to land in the catalog ahead of the API stability guarantees being hardened. I would be speculating about a lot of that stuff though, just giving some color to the report that hopefully helps explain a bit how we got here, on the way to Flux GA.
A few days ago, Flux started trying to update itself from 0.36 to 0.37. It then began failing. The 0.37 version is stuck in a
Pending
state due to aRequirementsNotMet: one or more requirements couldn't be found
error. 0.36 was in aFailing
state.OLM Logs:
I attempted to perform the steps in this RedHat article, but they didn't work (Delete the Subscription and CSVs, re-install).
Logs post re-install
Anyone seen this issue before? I must admit, I'm not all that familiar with how operators work, so any help or advice would be appreciated.