-
Notifications
You must be signed in to change notification settings - Fork 380
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
Remove volumesnapshot.spec.source.snapshotHandle field. #246
Comments
Spec.Source.SnapshotHandle in VolumeSnapshotContent is only specified for pre-provisioned snapshots. It indicates a desired state. If you are testing dynamically creating a snapshot, it will be empty. See "Importing an existing volume snapshot with Kubernetes" section in the blog https://kubernetes.io/blog/2019/12/09/kubernetes-1-17-feature-cis-volume-snapshot-beta/. Status.SnapshotHandle in VolumeSnapshotContent indicates actual state. This field should be populated in both dynamic provisioning and pre-provisioned cases. |
Thank you for your describe. I understand. |
b54c1ba Merge pull request kubernetes-csi#246 from xing-yang/go_1.21 5436c81 Change go version to 1.21.5 267b40e Merge pull request kubernetes-csi#244 from carlory/sig-storage b42e5a2 nominate self (carlory) as kubernetes-csi reviewer a17f536 Merge pull request kubernetes-csi#210 from sunnylovestiramisu/sidecar 011033d Use set -x instead of die 5deaf66 Add wrapper script for sidecar release git-subtree-dir: release-tools git-subtree-split: b54c1ba
Change go version to 1.21.5
It seems that volumesnapshot.spec.source.snapshotHandle is the same field that has meaning as volumesnapshot.spec.snapshotHandle.
And I noticed volumesnapshot.spec.source.snapshotHandle never had any value set.
So now the GetSnapshotStatus method never calls.
external-snapshotter/pkg/sidecar-controller/snapshot_controller.go
Lines 256 to 264 in 4b7aec3
So I think that should remove volumesnapshot.spec.source.snapshotHandle field.
(if volumesnapshot.spec.source.snapshotHandle and volumesnapshot.spec.snapshotHandle has another role, please teach me about it 🙏 )
The text was updated successfully, but these errors were encountered: