-
Notifications
You must be signed in to change notification settings - Fork 562
Bug 1828550: safely deprecate stored versions of CRDs #1504
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
Bug 1828550: safely deprecate stored versions of CRDs #1504
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: exdx The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@exdx: This pull request references Bugzilla bug 1828550, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@exdx: This pull request references Bugzilla bug 1828550, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
4ae455d
to
71bff78
Compare
71bff78
to
7932558
Compare
@exdx: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Closing in favor of #1529 |
Description of the change:
This PR adds back the ability for OLM to deprecate storage versions of CRDs during the CRD upgrade process. This was removed when adding support for v1 CRDs because the existing storage deprecation code could cause data loss issues - CRs of removed storage versions would remain in etcd but would not be
GET
able from the client, causing data loss.Motivation for the change:
Implement a safe way to deprecate old storage versions of CRDs. This can be done in several ways, but the k8s docs suggest writing each CR to the new storage version first before removing the old stored version.
Reviewer Checklist
/docs