Fix minikube status exiting with 0 when container doesn't exist#22497
Fix minikube status exiting with 0 when container doesn't exist#22497badal773 wants to merge 2 commits intokubernetes:masterfrom
Conversation
|
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: badal773 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @badal773! |
|
Hi @badal773. 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. DetailsInstructions 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-sigs/prow repository. |
|
Can one of the admins verify this patch? |
|
@badal773 please rebase |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixes
minikube statusincorrectly exiting with code 0 (success) when the Docker container has been deleted but the profile config still exists. This commonly happens when users rundocker system prune -aafter stopping minikube.Which issue(s) this PR fixes:
Fixes #22466
Before:
After:
Changes made:
ContainerStatus()by returningstate.Nonewithout an errorexitCode()to return non-zero (7) when status retrieval fails or returns no statusesExit code 7 represents all failure flags set: 1 (minikube) | 2 (cluster) | 4 (k8s) = 7