Skip to content

Add tests for ControllerServer.GetSnapshot #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nixpanic
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind api-change
/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test

/kind feature

/kind flake

What this PR does / why we need it:

GetSnapshot is a new CSI procedure for the ControllerServer.

Special notes for your reviewer:

/cc xing-yang

Reason for DRAFT: There is no release of the CSI spec with GetSnapshot yet, so this vendors the master branch of the spec and protobuf package.

Some files had to be re-generated, GoMock has moved to an other home. Those changes are included here too.

Does this PR introduce a user-facing change?:

Add CSI sanity testing of ControllerServer.GetSnapshot.

@k8s-ci-robot k8s-ci-robot requested a review from xing-yang May 26, 2025 15:47
@k8s-ci-robot
Copy link
Contributor

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

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 26, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: nixpanic
Once this PR has been reviewed and has the lgtm label, please assign xing-yang for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 26, 2025
@nixpanic
Copy link
Member Author

/test all

Checking to see if nothing broke.

@nixpanic
Copy link
Member Author

/test pull-kubernetes-csi-csi-test

Now with a hostpath driver that supports GetSnapshot

@nixpanic
Copy link
Member Author

/test pull-kubernetes-csi-csi-test

Fixed the "expect an error on invalid snapshod-id" test.

@nixpanic
Copy link
Member Author

/test pull-kubernetes-csi-csi-test

Now including updated release-tools which contain Go 1.24.2.

nixpanic added 3 commits May 28, 2025 10:08
f5fec3e Merge pull request kubernetes-csi#275 from chrishenzie/emeritus
c5d285d Remove chrishenzie from kubernetes-csi-reviewers
0a435bf Merge pull request kubernetes-csi#274 from andyzhangx/patch-5
cd7b4bb Bump golang to 1.24.2 to fix CVE-2025-22871
701dc34 Merge pull request kubernetes-csi#273 from andyzhangx/patch-4
aeebd30 Bump golang to 1.24.0
f277d56 Merge pull request kubernetes-csi#270 from carlory/update-kind-version
6dcb96a update default kind version to v0.25.0

git-subtree-dir: release-tools
git-subtree-split: f5fec3e364ddcdd060e7b7f22a04032556d194fb
Go 1.24 is required to build the latest csi-driver-hostpath.
@nixpanic
Copy link
Member Author

/test pull-kubernetes-csi-csi-test

Clean(er) release-tools update 🤞

nixpanic added a commit to nixpanic/csi-driver-host-path that referenced this pull request Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants