csi-driver-host-path
csi-driver-host-path copied to clipboard
Implement CSI SnapshotMetadata service
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR implements SnapshotMetadata service from the CSI specs. This service in combination with external-snapshot-metadata will be used to compare and query changed block metadata between two snapshots.
Right now, the service will be disabled by default till external-snapshot-metadata alpha is release.
The changes in deploy script to add external-snapshot-metadata sidecar will be added after alpha release.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
/assign /assign @bswartz
This is a new feature. Please add a release note. Can you add a note in the PR description that this is a sample implementation, and not for production use.
@carlbraganza @xing-yang I've addressed the feedback. PTAL
@PrasadG193 LGTM! Need approval from @xing-yang or @bswartz
Can you add your testing steps?
Can you add your testing steps?
hey @xing-yang ,
@PrasadG193 is on vacation and will be back thursday.
He had developed a client to test the new RPCs https://github.com/PrasadG193/external-snapshot-metadata-client which has been adopted as a tool in this pr https://github.com/kubernetes-csi/external-snapshot-metadata/pull/64
We are creating a gh action that adds simple e2e https://github.com/kubernetes-csi/external-snapshot-metadata/issues/67
Add a github action that:
- checkout repository
- sets up minikube
- builds latest sidecar image
- deploys csi-driver-hostpath driver resources
- runs simple e2e tests to create pvc, pod and snapshots and to write data.
- run client to verify working of both RPCs.
Sample run https://github.com/Rakshith-R/external-snapshot-metadata/actions/runs/12163453092/job/33922692908 (with the fix @iPraveenParihar has suggested above)
@xing-yang I have documented complete test plan along with steps to deploy csi driver with external-snapshot-metadata here - https://gist.github.com/PrasadG193/1fab082f03bbdb7db25a41ed17b7e7c1
LGTM! @PrasadG193
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: bswartz, PrasadG193, xing-yang
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [xing-yang]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment