-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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 #61502
Comments
Is this a beginner friendly issue? If so I will be happy to work on this |
Yes totally! |
@msau42 I don't find any other |
Sorry I wasn't being specific. If you look at #61489, you can see all the places we need to change whenever we add a new function to the Mounter interface. Many of these are fake implementations for unit tests, so there may be some opportunity for consolidation there. |
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 <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Clean up fake mounters. **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: - (keep) pkg/util/mount.FakeMounter - (removed) pkg/kubelet/cm.fakeMountInterface: - (inherit from mount.FakeMounter) pkg/util/mount.fakeMounter - (inherit from mount.FakeMounter) pkg/util/removeall.fakeMounter - (removed) pkg/volume/host_path.fakeFileTypeChecker **Release note**: ```release-note NONE ```
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 <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Clean up fake mounters. **What this PR does / why we need it**: Fixes kubernetes/kubernetes#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: - (keep) pkg/util/mount.FakeMounter - (removed) pkg/kubelet/cm.fakeMountInterface: - (inherit from mount.FakeMounter) pkg/util/mount.fakeMounter - (inherit from mount.FakeMounter) pkg/util/removeall.fakeMounter - (removed) pkg/volume/host_path.fakeFileTypeChecker **Release note**: ```release-note NONE ```
Is this a BUG REPORT or FEATURE REQUEST?:
@kubernetes/sig-storage-bugs
/kind cleanup
What happened:
There are too many FakeMounter implementations in the codebase. It's annoying to have to update all of them whenever we have to change the Mounter interface. They should all be consolidated to use the FakeMounter implementation in pkg/util/mount/fake.go.
The text was updated successfully, but these errors were encountered: