-
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
move delete logic to a pkg #5693
Conversation
Moved DeleteProfileDirectory to pkg
Moved DeleteInvalidProfile to pkg
Moved GetClusterBootstrapper to cluster pkg
Moved testdata to delete pkg
# Conflicts: # cmd/minikube/cmd/delete.go # cmd/minikube/cmd/mount.go # pkg/minikube/cluster/cluster.go # pkg/minikube/delete/delete_test.go
Hi @marekschwarz. 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. |
Can one of the admins verify this patch? |
Codecov Report
@@ Coverage Diff @@
## master #5693 +/- ##
==========================================
- Coverage 36.54% 36.41% -0.13%
==========================================
Files 110 111 +1
Lines 8114 8107 -7
==========================================
- Hits 2965 2952 -13
- Misses 4760 4765 +5
- Partials 389 390 +1
|
@minikube-bot OK to test |
@marekschwarz can you please provide a PR description of what it does and how it will affect other things? |
/ok-to-test |
Done |
while I didn't study the PR, but a quick look I noticed it doesn't Read well for example for example |
Renamed DeleteProfile to DeleteProfileDirectory
Travis tests have failedHey @marekschwarz, 1st Buildmake test
TravisBuddy Request Identifier: b2f1b7f0-f5cc-11e9-a1fe-396a3052531f |
…/minikube into DELETE_LOGIC_TO_PKG
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.
minor changes requested
…DELETE_LOGIC_TO_PKG
# Conflicts: # cmd/minikube/cmd/delete.go
Old binary: [180.365082364 170.932122883 180.425103299] |
/assign @medyagh |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: marekschwarz 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 |
Old binary: [186.533519105 175.746501642 180.046910261] |
@marekschwarz sorry for the delay can u plz rebase |
Do you mind resolving the merge conflicts? |
I will take care of it this week :-) |
/retest this please |
# Conflicts: # cmd/minikube/cmd/delete.go # cmd/minikube/cmd/root.go # cmd/minikube/cmd/start.go # cmd/minikube/cmd/stop.go # pkg/minikube/cluster/cluster.go # pkg/minikube/machine/machine.go
Travis tests have failedHey @marekschwarz, TravisBuddy Request Identifier: 4a5c7090-258d-11ea-8c31-f79bb2699b7f |
All Times minikube: [ 123.302119 126.979365 123.297754] Average minikube: 124.526413 Averages Time Per Log
|
@marekschwarz please make sure to run make test to see the test failures and make lint to see lint issues locally |
All Times minikube: [ 128.996987 132.344816 133.932775] Average minikube: 131.758193 Averages Time Per Log
|
@marekschwarz are you still working on this ? |
All Times minikube: [ 96.511587 96.447060 96.683337] Average minikube: 96.547328 Averages Time Per Log
|
@marekschwarz: PR needs rebase. 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. |
@marekschwarz I close this PR for now, please feel free to re-open when ready |
As in #4780 discussed, I moved the logic for the deletion of profiles and machines to the pkg folder, to decouple the command logic from the delete logic.
For this I introduced a new folder named
delete
, where I moved all the logic and testdata. I'm not happy with the name of the folder and created it because of import cycles, but we can discuss the name or the place where the logic sits if you want.While doing this had to move the
getClusterBootstrapper
-Method fromroot.go
tocluster.go
.