- Notifications
You must be signed in to change notification settings - Fork 404
Update VolumeSnapshot and VolumeSnapshotContent using JSON patch #974
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
Update VolumeSnapshot and VolumeSnapshotContent using JSON patch #974
Conversation
fix unit tests operate on cloned copy revert to update call for removeSnapshotFinalizer fix content delete finalizer
| Welcome @phoenix-bjoern! |
| Hi @phoenix-bjoern. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
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.
Thank you !
| /ok-to-test |
| Please add a release note. |
| Compiled a release note draft from the original PR of @shubham-pampattiwar:
@xing-yang is the draft okay? Shall I commit it somewhere? |
| @phoenix-bjoern The PR description section of the original PR has a release note: #876. You can add the same release note in your PR description and also mention that this is a cherry-pick of 876. |
| @phoenix-bjoern please update the PR description as suggested by @xing-yang |
| @shubham-pampattiwar @xing-yang I've copied the issue description from the original PR as requested. |
| /lgtm |
| [APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: phoenix-bjoern, shubham-pampattiwar, xing-yang The full list of commands accepted by this bot can be found here. The pull request process is described here Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| FYI, I was having very frequent snapshot errors with velero and longhorn on k3s. I build a custom v6.3.3 of the external-snapshotter with this fix and my errors appear to have been resolved. I look forward to having this in an officially released image. Thank you folks :) |
We do plan to cut a patch release for 6.3.x. We are still waiting for another important fix before doing that. |
| @pbozeman I have the same stack as yours and having this issue, could you please describe how did you fix it ? As far as I know, the latest longhorn version 1.5.3 uses the CSI snapshotter v6.2.1, so I'm imaging I can't use the CSI snapshotter v6.3.3 |
| @Hamza-Aziz: I cloned the external-shaphotter repo and made sure I was on a branch with this commit, then tagged it with 6.3.3. I built the repo, pushed it to a private docker registry. That part may not be necessary anymore if the k8s-csi folks have pushed this release to their repository. From there, add the following to your longhorn values.yaml (or however you are configuring it during deployment): I was initially worried about mixing and matching components/images like this from different versions, but it seems fine. |
| @phoenix-bjoern Thank you, yes it's released you can use now |
| Hello |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR replaces the Update calls for VolumeSnapshot and VolumeSnapshotContent with JSON patch calls. Addresses the "object has been modified" issue we see a lot in the snapshot-controller/snapshotter.
Which issue(s) this PR fixes:
Partial fix (only for Update() calls) #748
Special notes for your reviewer:
N/A
Does this PR introduce a user-facing change?: