From 31d0e967bec86f2b091d156745f32f52c8b22a03 Mon Sep 17 00:00:00 2001 From: Sairam Bisoyi Date: Fri, 14 Aug 2026 13:46:48 +0530 Subject: [PATCH] E2E: add kind VolumeSnapshotClass test data (#10236) BeforeSuite applies testdata/volume-snapshot-class/.yaml when CSI is enabled, and there is no kind.yaml, so the suite fails before any spec runs and none of the existing CSI tests can run on kind. This adds a class for csi-driver-host-path. The driver ships its own, but it lacks the velero.io/csi-volumesnapshot-class label so Velero never selects it. Nothing sets FEATURES=EnableCSI for kind yet, so no test that runs today is affected. Signed-off-by: Sairam Bisoyi --- test/testdata/volume-snapshot-class/kind.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/testdata/volume-snapshot-class/kind.yaml diff --git a/test/testdata/volume-snapshot-class/kind.yaml b/test/testdata/volume-snapshot-class/kind.yaml new file mode 100644 index 000000000..35aa60ad4 --- /dev/null +++ b/test/testdata/volume-snapshot-class/kind.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: snapshot.storage.k8s.io/v1 +deletionPolicy: Delete +driver: hostpath.csi.k8s.io +kind: VolumeSnapshotClass +metadata: + labels: + velero.io/csi-volumesnapshot-class: "true" + name: e2e-volume-snapshot-class