-
Notifications
You must be signed in to change notification settings - Fork 377
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
Should set snapshot.storage.kubernetes.io/deletion-secret-name(space) annotation automatically to VolumeSnapshotContent when importing an exists snapshot #251
Comments
Yes, it makes sense to set deletion secret annotation for pre-provisioned snapshots as well. I think it should be added in this routine and secrets should be retrieved from snapshotClass on the content for pre-provisioned case (same as ListSnapshots secret): One thing we need to decide is how to handle the case where annotation is already applied. For example, a snapshot was dynamically provisioned and secret annotation was added to the content. This content has Retain policy. User deletes VolumeSnapshot. Content remains. User changes the snapshotClassName or secrets in snapshotClass associated with the content. User creates a new VolumeSnapshot to bind with the existing content. At this time, should we keep the original annotation or modify it with the new one. |
CC @msau42 |
In terms of responsibility, I think we currently have some clear boundaries:
I don't think we should mix responsibilities and have the controller modify the Content object. This is the same behavior for PVs. If someone manually creates a PV object, they need to manually fill in all the fields. |
/assign @humblec |
Thank you for response @xing-yang @msau42. @humblec Yes, I closed this issue. Thank you for notification. |
Thanks @bells17 👍 |
edd89ad Merge pull request kubernetes-csi#251 from jsafrane/add-logcheck 043fd09 Add test-logcheck target d7535ae Merge pull request kubernetes-csi#250 from jsafrane/go-1.22 b52e7ad Update go to 1.22.2 14fdb6f Merge pull request kubernetes-csi#247 from msau42/prow 9b4352e Update release playbook c7bb972 Fix release notes script to use fixed tags 463a0e9 Add script to update specific go modules git-subtree-dir: release-tools git-subtree-split: edd89ad
adb3af9 Merge pull request kubernetes-csi#252 from bells17/update-go-version b82ee38 Merge pull request kubernetes-csi#253 from bells17/fix-typo c317456 Fix typo 0a78505 Bump to Go 1.22.3 edd89ad Merge pull request kubernetes-csi#251 from jsafrane/add-logcheck 043fd09 Add test-logcheck target d7535ae Merge pull request kubernetes-csi#250 from jsafrane/go-1.22 b52e7ad Update go to 1.22.2 14fdb6f Merge pull request kubernetes-csi#247 from msau42/prow 9b4352e Update release playbook c7bb972 Fix release notes script to use fixed tags 463a0e9 Add script to update specific go modules git-subtree-dir: release-tools git-subtree-split: adb3af9
Add test-logcheck target
Hi, I think it should set snapshot.storage.kubernetes.io/deletion-secret-name(space) annotation automatically to VolumeSnapshotContent when importing an exists snapshot.
Now, If your CSI driver uses VolumeSnapshotClass Secrets in DeleteSnapshot RPC, may DeleteSnapshot is failed.
Because the VolumeSnapshotClass Secrets don't be used when requesting the DeleteSnapshot RPC call.
If you want to use VolumeSnapshotClass Secrets in DeleteSnapshot RPC, You need to set snapshot.storage.kubernetes.io/deletion-secret-name(space) annotation manually to VolumeSnapshotContent.
But if VolumeSnapshotContent is created from VolumeSnapshot, snapshot.storage.kubernetes.io/deletion-secret-name(space) annotation annotation set automatically to VolumeSnapshotContent.
So I think it should set snapshot.storage.kubernetes.io/deletion-secret-name(space) annotation automatically to VolumeSnapshotContent when importing an exists snapshot.
If annotations are set automatically, users don't need to think about annotations when importing an existing snapshot.
The text was updated successfully, but these errors were encountered: