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
Clean up fake mounters. #64426
Clean up fake mounters. #64426
Conversation
46bcacb
to
43907b2
Compare
/ok-to-test |
@cofyc, please apply for membership using this process, it will simplify things for you. I can sponsor you, perhaps @msau42 can too. https://github.com/kubernetes/community/blob/master/community-membership.md#member |
/lgtm |
@jsafrane Thanks! I had applied for membership a few days ago. I'm waiting for response. |
/lgtm |
/assign @brendandburns @dchen1107 @lavalamp @smarterclayton @thockin |
pkg/util/mount/exec_mount_test.go
Outdated
mounter := NewExecMounter(exec, wrappedMounter) | ||
|
||
mounter.Unmount(destinationPath) | ||
} | ||
|
||
/* Fake wrapped mounter */ | ||
type fakeMounter struct { | ||
t *testing.T | ||
*FakeMounter | ||
*testing.T |
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.
keep the name lowercase?
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.
Done. T
changed to t
. (fakeMounter
needs to embed FakeMounter
to inherit methods so it cannot be lowered)
@@ -29,6 +29,7 @@ import ( | |||
type FakeMounter struct { | |||
MountPoints []MountPoint | |||
Log []FakeAction | |||
Filesystem map[string]FileType |
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 type should be moved to a testing/ subdir so it doesn't get linked into non-test code. Won't block this PR on it.
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.
OK. It'll change a lot of go imports and BUILD files, I'll create another PR for this.
/approve |
43907b2
to
390898a
Compare
/lgtm |
390898a
to
9bc905f
Compare
9bc905f
to
40c3937
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cofyc, feiskyer, jsafrane, msau42, thockin 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 |
/retest Review the full test history for this PR. Silence the bot with an |
4 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
Automatic merge from submit-queue (batch tested with PRs 64142, 64426, 62910, 63942, 64548). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
Fixes #61502
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
list of fake mounters:
Release note: