-
Notifications
You must be signed in to change notification settings - Fork 152
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
Rearrange order of snapshot APIs #1979
Conversation
Thanks for submitting this pull request 🎉. The team will review it soon and get back to you. If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document. |
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.
Since v1 is the default version in the newer clusters, this change makes sense 👍🏼
Need to perform upgrade testing. E,g If Snapshot taken from older workflow can be restored by newer workflow. Please add detailed test plans in the PR discription. Thanks |
@PrasadG193 we should also make sure that the snapshot related api version is different between these two tests/workflows right? |
Yes, we need to test for backward compatibility. If snapshots taken with beta APIs can be restored with stable API |
9fb0efb
to
131fdaa
Compare
@PrasadG193 we have tried following things to verify the change.
|
Change Overview
This PR rearranges the order of Snapshot APIs in v1 (stable), v1beta1 and v1alpha1.
This fixes taking snapshot when RKE2 snapshot-validation-hook is enabled.
Pull request type
Please check the type of change your PR introduces:
Issues
Test Plan
💪 Manual
⚡ Unit test
💚 E2E
Manually applied this fix in a cluster and was able to take a snapshot of a namespace when RKE2 webhook was enabled.
All E2E tests passed.
Manually verified backup taken before upgrade is getting restored after upgrade as well
Steps:
Volume snapshot details: