-
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
Fix to delete context when delete minikube #6541
Conversation
Welcome @anencore94! |
Hi @anencore94. 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: anencore94 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? |
Travis tests have failedHey @anencore94, TravisBuddy Request Identifier: 2a329880-497d-11ea-bd91-d1e011516349 |
the code doesnt build ! @anencore94 |
@medyagh Thanks for checking !!
I think it doesn't build since some connection error occured ? |
I restarted the build ! this does look like a LEGIT bug ! thank you for findind this ! @anencore94 |
@anencore94 how do you feel about adding an integeration test for this here https://github.com/kubernetes/minikube/blob/master/test/integration/start_stop_delete_test.go#L153 |
Travis tests have failedHey @anencore94, TravisBuddy Request Identifier: 7916d940-4985-11ea-83a0-77379528e44b |
@medyagh |
- when `minikube delete`, minikube must delete its config which are set when `minikube start`. - But, there was some mistakes in the function that does this logic Signed-off-by: anencore94 <anencore94@kaist.ac.kr>
57550bd
to
460f8d0
Compare
@medyagh Also, the travis-ci failed on lint by this error:
I guess something happened in the travisci-running-node..? |
Codecov Report
@@ Coverage Diff @@
## master #6541 +/- ##
==========================================
+ Coverage 37.94% 38.08% +0.13%
==========================================
Files 138 137 -1
Lines 8701 8684 -17
==========================================
+ Hits 3302 3307 +5
+ Misses 4982 4962 -20
+ Partials 417 415 -2
|
By the way, before this commit merged, the master branch source code always goes into this way : Is it ok to just changing the wrong-ordered-parameter? Or does the condition should be changed somehow ? |
/ok-to-test |
All Times minikube: [ 92.002662 96.278031 92.898417] Average Minikube (PR 6541): 92.582826 Averages Time Per Log
|
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 unit test looks good, but for some reason it's failing. I added some comments to hopefully make it easier to debug.
Thank you so much for fixing this. It's been broken for so long that honestly I had imagined it as a feature. |
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.
Added minor requests for test debuggability.
/ok-to-test |
All Times minikube: [ 90.458863 93.497989 90.886117] Average minikube: 91.614323 Averages Time Per Log
|
minikube delete
, minikube must delete its contexts which are set whenminikube start
.DeleteContext(machineName string, configPath ...string)
inpkg/minikube/kubeconfig/context.go
was not matching with usage indeleteContext
.kubeconfig.DeleteContext(constants.KubeconfigPath, machineName)
Fixes #6538