-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Respect the "snapshot.storage.kubernetes.io/is-default-class: true" annotation of VolumeSnapshotClass when taking the CSI snapshot #8294
Comments
Is there any reason there isn't a third else for looping through drivers and picking one that works? |
Is this what you expect? This also makes sense to me.
|
|
I believe |
Because if we put this above the velero annotation, the existing behaviour will break in some sense for users. |
If this is breaking change we can add feature flag to enable the new behavior. |
I don't think the feature flag is a good option because this will introduce another configuration. We should try to avoid introducing the break change, so how about choosing the
And report error if the above logic matches more than 1 |
|
@kaovilai / @ywk253100 how does above draft look? |
Looks good, missing the third one from #8294 (comment) |
I personally don't see a need for it at this point. We should expect customer to put either of This keeps the behaviour deterministic. Let me know if there is any user ask for this. |
It just removes a step from pre-requisite that's all. Many local/dev cluster like KinD or crc would most likely only have one. This would keep velero install scripts generic for several local cluster environments. But that can also be done outside of velero so I am ok skipping non-deterministic for velero. |
IMHO, although this issue improves user experience, it may not be a high priority for v1.16. |
I agree with you @reasonerjt |
Hi! I am new to Velero and this issue looks like a good start. Can I get this assigned? |
Currently, Velero chooses the
VolumeSnapshotClass
with the annotationvelero.io/csi-volumesnapshot-class: "true"
added when taking CSI snapshot, there is an official annotationsnapshot.storage.kubernetes.io/is-default-class: true
introduced to specify a defaultVolumeSnapshotClass
forVolumeSnapshot
that don't request any particular class to bind to.So we could refine the current
VolumeSnapshotClass
choosing logic as follows:VolumeSnapshotClass
annotated withsnapshot.storage.kubernetes.io/is-default-class: true
VolumeSnapshotClass
annotated withvelero.io/csi-volumesnapshot-class: "true"
Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: