Support the VolumeGroupSnapshot v1 API
What steps did you take and what happened:
VolumeGroupSnapshots graduated to General Availability in Kubernetes v1.36, promoting the API to groupsnapshot.storage.k8s.io/v1. Velero’s current VGS implementation explicitly uses v1beta2 types and scheme registration. It therefore fails on clusters whose group-snapshot CRDs serve only v1. We should add support for the GA API and determine whether the target release can require v1 or must retain compatibility with v1beta2-only clusters. Reference: Kubernetes v1.36: Moving Volume Group Snapshots to GA (https://kubernetes.io/blog/2026/05/08/kubernetes-v1-36-volume-group-snapshot-ga/)
Steps to reproduce
- Use a cluster where all three group-snapshot CRDs serve only v1.
- Configure a CSI driver supporting group snapshots and a matching VolumeGroupSnapshotClass with the required Velero selection label.
- Create a backup with spec.volumeGroupSnapshotLabelKey and matching PVC labels.
- Run the backup using Velero’s current v1beta2 implementation.
What did you expect to happen:
Velero should support group-snapshot backup, restore, and cleanup on clusters serving groupsnapshot.storage.k8s.io/v1.
The following information will help us better understand what's going on:
If you are using velero v1.7.0+:
Please use velero debug --backup <backupname> --restore <restorename> to generate the support bundle, and attach to this issue, more options please refer to velero debug --help
If you are using earlier versions:
Please provide the output of the following commands (Pasting long output into a GitHub gist or other pastebin is fine.)
kubectl logs deployment/velero -n velerovelero backup describe <backupname>orkubectl get backup/<backupname> -n velero -o yamlvelero backup logs <backupname>velero restore describe <restorename>orkubectl get restore/<restorename> -n velero -o yamlvelero restore logs <restorename>
Anything else you would like to add:
Environment:
- Velero version (use
velero version): 1.18.3 - Velero features (use
velero client config get features): - Kubernetes version (use
kubectl version): - Kubernetes installer & version:
- Cloud provider or hardware configuration:
- OS (e.g. from
/etc/os-release):
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.
- :+1: for "I would like to see this bug fixed as soon as possible"
- :-1: for "There are more important bugs to focus on right now"
Source: velero-io/velero