From 4562c75dd0a578173801eea490fe92421c00d84f Mon Sep 17 00:00:00 2001 From: KrishhnaT Date: Fri, 25 Sep 2026 04:51:52 +0530 Subject: [PATCH] e2e: add kind VolumeGroupSnapshotClass test data (#10582) * e2e: add kind VolumeGroupSnapshotClass test data Velero selects a VolumeGroupSnapshotClass by the velero.io/csi-volumegroupsnapshot-class label, and csi-driver-host-path ships no VolumeGroupSnapshotClass at all, so there is nothing for the selector to find on a kind cluster. Any VolumeGroupSnapshot e2e coverage needs a class to exist first. Add the kind entry alongside the existing volume-snapshot-class test data, following the same layout and naming. Verified against a kind cluster running external-snapshotter v8.6.0 and csi-driver-host-path: applying this file and creating a VolumeGroupSnapshot that selects two labelled PVCs reaches readyToUse with both member snapshots ready. Nothing applies this file yet. It is a prerequisite for the VolumeGroupSnapshot specs tracked in #7507, kept separate so the class can be reviewed on its own. Signed-off-by: krishhna24 * Add changelog for #10582 Signed-off-by: krishhna24 --------- Signed-off-by: krishhna24 --- changelogs/unreleased/10582-krishhna24 | 1 + test/testdata/volume-group-snapshot-class/kind.yaml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 changelogs/unreleased/10582-krishhna24 create mode 100644 test/testdata/volume-group-snapshot-class/kind.yaml diff --git a/changelogs/unreleased/10582-krishhna24 b/changelogs/unreleased/10582-krishhna24 new file mode 100644 index 000000000..5ad8a9b48 --- /dev/null +++ b/changelogs/unreleased/10582-krishhna24 @@ -0,0 +1 @@ +Add kind VolumeGroupSnapshotClass e2e test data diff --git a/test/testdata/volume-group-snapshot-class/kind.yaml b/test/testdata/volume-group-snapshot-class/kind.yaml new file mode 100644 index 000000000..464ce113a --- /dev/null +++ b/test/testdata/volume-group-snapshot-class/kind.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: groupsnapshot.storage.k8s.io/v1beta2 +deletionPolicy: Delete +driver: hostpath.csi.k8s.io +kind: VolumeGroupSnapshotClass +metadata: + labels: + velero.io/csi-volumegroupsnapshot-class: "true" + name: e2e-volume-group-snapshot-class