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
Avoid CRD deletion when upgrading #801
Conversation
What versions of the chart are affected by this issue? |
The code related to the CRD was changed in the version |
Thank you @andresmgot for noticing the issue and fixing it.
I am afraid that the issue might have been actually there and this is the reason I have not noticed it #800 (comment) There is a report of a potential instance of the error here #625 and I saw it once but could not reproduce. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that the only gotcha of this solution is that in theory we are re-attaching the existing CRDs to the latest kubeapps instance that was upgraded. Which in practice I don't see any issue with since we use the keep
annotation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@migmartri yes, I think this could potentially be an issue if we update the AppRepository CRD in a new release, and there are other instances of Kubeapps relying on the CRD. Speaking of, created #803 to address bumping the AppRepo CRD version.
I understand the issue. In any case, CRDs are cluster wide so in any case, several instances of Kubeapps needs to be upgraded if we change the version of the CRD. I am landing this PR to fix the original issue. Thanks for the input! |
Fixes #800