-
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
Create target directory if it doesn't exist #303
Create target directory if it doesn't exist #303
Conversation
8aaaa6c
to
0b52afe
Compare
0b52afe
to
0ae097d
Compare
0ae097d
to
d684ca9
Compare
d684ca9
to
dc9bf4f
Compare
The part that isn't clear to me is which tests are run against the CSI mock driver and why. https://github.com/kubernetes/kubernetes/blob/dd4560370743e94c9d5a477370bf25ffb49e973e/test/e2e/storage/csi_volumes.go#L31 explicitly mentions that the testsuites tests are not run against the mock diver. |
we're specifically looking at test cases in https://github.com/kubernetes/kubernetes/blob/master/test/e2e/storage/csi_mock_volume.go, which tests imitates different permutations of csi drivers. |
|
||
// Check to see if the volume has already been unpublished. | ||
if v.VolumeContext[nodeMntPathKey] == "" { | ||
return &csi.NodeUnpublishVolumeResponse{}, nil | ||
} | ||
|
||
// Delete any created paths | ||
delete(v.VolumeContext, nodeMntPathCreated) | ||
err := os.RemoveAll(v.VolumeContext[nodeMntPathKey]) |
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.
The else case is odd: https://github.com/kubernetes-csi/csi-test/pull/303/files#diff-4690af0a8d51b3daac5423ee65ecc1107da2f28aa20bed0dad99ec2e9fd1c6b5R219
I opened up #305 to follow up on this
dc9bf4f
to
16b637a
Compare
/lgtm /hold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: huffmanca, msau42 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The title has been updated, a release note added, and the created issue linked. |
/hold cancel |
Cherry pick #303 to release-3.1: Create target dir if it doesn't exist
What type of PR is this?
/kind bug
What this PR does / why we need it:
After https://github.com/kubernetes/kubernetes/pull/88759/files we need to create the staging and target directories if they don't exist.
Which issue(s) this PR fixes:
Fixes #304
Special notes for your reviewer:
Does this PR introduce a user-facing change?: