Skip to content
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

delete --all doesn't work if you change profile #6758

Closed
medyagh opened this issue Feb 22, 2020 · 1 comment
Closed

delete --all doesn't work if you change profile #6758

medyagh opened this issue Feb 22, 2020 · 1 comment
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@medyagh
Copy link
Member

medyagh commented Feb 22, 2020

if you change profile with minikube profile p1

it will not let you delete all
(you will have to be on default profile name)


medmac@~ $ minikube delete --all
💡  usage: minikube delete --all

medmac@~ $ minikube version
minikube version: v1.7.3
commit: 436667c819c324e35d7e839f8116b968a2d0a3ff
medmac@~ $ minikube delete --all
💡  usage: minikube delete --all
medmac@~ $ minikube profile list
|---------|-----------|---------|------------|------|---------|---------|
| Profile | VM Driver | Runtime |     IP     | Port | Version | Status  |
|---------|-----------|---------|------------|------|---------|---------|
| p1      | docker    | docker  | 172.17.0.3 | 8443 | v1.17.3 | Running |
| s1      | docker    | docker  | 172.17.0.2 | 8443 | v1.17.3 | Running |
|---------|-----------|---------|------------|------|---------|---------|

side effect of this code

	if deleteAll {
		if profileFlag != constants.DefaultMachineName {
			exit.UsageT("usage: minikube delete --all")
		}

this scenario doesn't happen that often thats why we didn't see this

@medyagh medyagh changed the title delete --all broken delete --all doesn't work if you change profile Feb 22, 2020
@medyagh medyagh added priority/backlog Higher priority than priority/awaiting-more-evidence. kind/bug Categorizes issue or PR as related to a bug. labels Feb 22, 2020
@vikkyomkar
Copy link
Contributor

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

3 participants