-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Feature/add disk-usage command #13112
Conversation
This commit adds the disk-usage command to minikube, which can be used to calculate and display the disk usage of a users default minikube directory and immediate child directories.
Hi @mpuckett159. Thanks for your PR. I'm waiting for a kubernetes 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mpuckett159 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 |
Can one of the admins verify this patch? |
I find the flags a bit confusing and also it is showing the disk usage outside minikube which what I first thought, ( I thought would show disk usage inside minikube node) |
Yeah I'm not super happy with the flags either. I wanted to mimic du more exactly but it wouldn't let me (or I couldn't figure out how to at least) override the |
Note that "du" uses |
Substantially easier/cleaner, thanks for the pointer.
Updated the original PR comment to reflect the usage of the |
"also it is showing the disk usage outside minikube which what I first thought, ( I thought would show disk usage inside minikube node)" @medyagh Could you explain this a little more for me? I seem to have misunderstood the ask some but I'm not exactly sure what part of it I missed. You can DM me in the K8S Slack as well if you want, username there is |
@mpuckett159
I think minikube has many commands and I would love to have a feature that shows the disk usage but I would like that to be part of a bigger picture that could also be inline to what most users are used to in simmilar tools like docker I would perfer a MEP on this before a PR sine this adds a new command, I would like more disscusssion on this |
here I recommend adding a MEP for. this so we could discuss what is best way to go forward |
Hah, MEP are my initials. Ok I'll fill that out. Sorry got confused because the Issue linked said it was good for a PR but I guess given the obvious confusion here this route is best. |
fixes #12967
This PR implements a subcommand to minikube called disk-usage that will, by default, output a list of the child directories of the user's minikube directory in a human readable format. It has additional flags for printing the full, unrounded bytes of the directory sizes, and for only displaying the size of the root directory. The flags can be used serially. See below for what the new output looks like.
Example output: