Skip to content
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

feat(csi): allow setting annotation on StorageClass to determine VolumeSnapshotClass #8646

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

cfi2017
Copy link

@cfi2017 cfi2017 commented Jan 23, 2025

This PR adds a way to specify the desired VolumeSnapshotClass by annotation in the StorageClass.

An example use case here is Nutanix: The Nutanix CSI driver uses a single provisioner but allows for StorageClasses on either NFS (NutanixFiles) or Volumes (NutanixVolumes). These two StorageClasses require differently configured VolumeSnapshotClasses even though they use the same provisioner.

In Velero, currently, this is only supported by setting an annotation on every PVC you want to back up.

A more scalable approach is to allow setting a default for the StorageClass.

Please indicate you've done the following:

Signed-off-by: Carlo Field <[email protected]>
Signed-off-by: Carlo Field <[email protected]>
@cfi2017
Copy link
Author

cfi2017 commented Jan 23, 2025

For reference, this is the same PR I first opened in the old CSI plugin repo, before realising that repo is outdated.

vmware-tanzu/velero-plugin-for-csi#237

@cfi2017 cfi2017 force-pushed the feat/storageclass-volumesnapshotclass-annotation branch from 2a931b5 to e8c8283 Compare January 28, 2025 08:56
@reasonerjt reasonerjt added the Needs triage We need discussion to understand problem and decide the priority label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation has-changelog has-unit-tests Needs triage We need discussion to understand problem and decide the priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants