-
Notifications
You must be signed in to change notification settings - Fork 151
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
Use CSI proxy v1 client library #738
Use CSI proxy v1 client library #738
Conversation
Hi @mauriciopoppe. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -6,7 +6,6 @@ | |||
# replace the following with annotation approach. https://github.com/docker/cli/pull/2578 | |||
|
|||
export DOCKER_CLI_EXPERIMENTAL=enabled | |||
_WINDOWS_VERSIONS="20H2 2004 1909 ltsc2019" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line was unused in this program
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mauriciopoppe 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 |
0e0646d
to
666f2b9
Compare
d623c9f
to
6b2ce4c
Compare
450e61b
to
75565a3
Compare
/hold Even though this is working I have to make a small refactor taking all of the methods of both v1 and v1beta mounters to an interface to simplify the code |
75565a3
to
f013e83
Compare
f013e83
to
f668952
Compare
/unhold Made the refactor and run the e2e tests again and added the results in the description |
/ok-to-test |
/test pull-gcp-compute-persistent-disk-csi-driver-e2e-win2019 |
It's the same integration test problem. We still haven't figured out what's going on. After you get an lgtm from Jing I can force-merge this. |
@@ -8,6 +8,7 @@ transformers: | |||
patchesStrategicMerge: | |||
- noauth.yaml | |||
- controller-overlay.yaml | |||
- node-overlay.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need add this yaml too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a dev only file, I used it to deploy the GCE PD CSI driver with AlwaysPull
@@ -39,7 +39,7 @@ func formatAndMount(source, target, fstype string, options []string, m *mount.Sa | |||
// not exist. Currently kubelet creates the path beforehand, this is a workaround to | |||
// remove the path first. | |||
func preparePublishPath(path string, m *mount.SafeFormatAndMount) error { | |||
proxy, ok := m.Interface.(*mounter.CSIProxyMounter) | |||
proxy, ok := m.Interface.(mounter.CSIProxyMounter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why pointer is removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously it was a struct, now it's an interface implemented by v1 and v1beta
/lgtm |
New changes are detected. LGTM label has been removed. |
@jingxu97 I've bumped the csi-proxy client library to v1, could you lgtm again please? |
I'll wait for the tests to run, confirm they pass except for the usual suspect, and force the merge. |
@mauriciopoppe: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/test pull-gcp-compute-persistent-disk-csi-driver-e2e |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds compatibility with the following versions of the csi-proxy client: disk v1, volume v1, filesystem v1, the plan to upgrade is:
Summary of changes:
safe-mounter_windows.go
was cloned into a v1 and a v1beta version, the differences are the imports (I could also change this to multiple if statements but a clone makes the code easy to follow)NewSafeMounter
creates either a v1 mounter or a v1beta mounter, theInterface
is casted to the required type on runtimeLogs of the new implementation:
Test steps:
csi-proxy.exe
, verify that the v1 named pipes are availableExternal Storage
suite from k/k (compatibility with the existing csi-proxy server)External Storage
suite from k/kExternal Storage
testsuite setting csi-proxy v1 in k/k Add optional presubmit prow job for GCE PD CSI Driver with csi-proxy v1 kubernetes/test-infra#22636Next changes:
Does this PR introduce a user-facing change?:
/assign @jingxu97 @msau42