Skip to content

E2E: run CSI snapshot tests on kind CI - #10274

Open
YO-WHATS-UP2 wants to merge 1 commit into
velero-io:mainfrom
YO-WHATS-UP2:csi-e2e-kind-ci
Open

E2E: run CSI snapshot tests on kind CI#10274
YO-WHATS-UP2 wants to merge 1 commit into
velero-io:mainfrom
YO-WHATS-UP2:csi-e2e-kind-ci

Conversation

@YO-WHATS-UP2

@YO-WHATS-UP2 YO-WHATS-UP2 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Thank you for contributing to Velero!

Please add a summary of your change

The kind matrix excludes every Snapshot and CSI label because the cluster has no CSI driver, so the CSI tests that already exist have never run. This installs the external-snapshotter CRDs, the snapshot-controller and csi-driver-host-path, then adds a job that runs the BackupVolumeInfo CSI labels against them.

The kind StorageClass moves to the hostpath provisioner in the same change, since local-path cannot snapshot and switching it before the driver exists would leave PVCs unbound in the jobs that pass today.

external-snapshotter is pinned to v8.6.0 deliberately. The bundled csi-snapshotter v8.6.0 sidecar watches groupsnapshot.storage.k8s.io/v1, which older CRD sets do not serve, so with the group snapshot gate on it never finishes syncing its caches and processes nothing — ordinary VolumeSnapshots included. It fails silently: readyToUse never becomes true and CreateSnapshot is never called. The install script asserts all four caches populated so a wrong pin fails loudly.

Does your change fix a particular issue?

NONE

Please indicate you've done the following:

The kind matrix excludes every Snapshot and CSI label because the cluster
has no CSI driver, so the CSI tests that already exist have never run.
This installs the external-snapshotter CRDs, the snapshot-controller and
csi-driver-host-path, then adds a job that runs the BackupVolumeInfo CSI
labels against them.

The kind StorageClass moves to the hostpath provisioner in the same
change: local-path cannot snapshot, and switching it before the driver is
installed would leave PVCs unbound in the jobs that pass today.

Signed-off-by: Sairam Bisoyi <sairamb2007.21@gmail.com>
@YO-WHATS-UP2
YO-WHATS-UP2 requested a review from a team as a code owner August 14, 2026 14:47
@netlify

netlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

👷 Deploy request for velero pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 16ea67f

@YO-WHATS-UP2

Copy link
Copy Markdown
Contributor Author

/kind changelog-not-required

@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@shubham-pampattiwar

Copy link
Copy Markdown
Member

Thanks for this, @YO-WHATS-UP2 -- solid work, and the external-snapshotter v8.6.0 pinning detail is exactly the kind of gotcha this needs to handle.

This work is the core of a CNCF LFX Mentorship 2026 Term 3 project (#7507), so I'm going to hold off on merging until the mentee is selected, to keep the project available for them. I'll keep this open as a reference.

If you're interested, applications open Aug 3-18 on the LFX platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants