-
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
Incorrect Value for current profile. #16604
Comments
/kind bug |
Using Following minikube version:
|
cc @kubernetes/minikube-maintainers |
here the Active means the active minikube profile, which means, |
Thanks @medyagh for the above information.
I agree with your above point, IMO we can Update the Column name for Active, instead of active we can use some meaningful name so that it will be useful to the users also we mention this thing somewhere in the docs, so the readers know about each column. |
I think We can also update the following comment:
because here it is mentioned the current cluster name which means the current cluster is in use and causes confusion while understanding the code. More Info:
|
@medyagh |
Hi, @medyagh PTAL! |
@medyagh, Could you please take a look? |
cc @kubernetes/minikube-maintainers |
@medyagh, PTAL! |
cc @kubernetes/minikube-maintainers |
@kubernetes/minikube-maintainers and @medyagh |
Hi folks,
I was not aware about the fact that the minikube profile is different from the active kubecontext. That being said, I would like to highlight both information in the minikube profile list
|-----------|-----------|---------|--------------|------|---------|---------|-------|--------------------|
| Profile | VM Driver | Runtime | IP | Port | Version | Status | Nodes | Active Kubecontext |
|-----------|-----------|---------|--------------|------|---------|---------|-------|--------------------|
| *minikube | docker | docker | 192.168.49.2 | 8443 | v1.28.4 | Running | 1 | |
| minikube2 | docker | docker | 192.168.58.2 | 8443 | v1.28.4 | Running | 1 | * |
|-----------|-----------|---------|--------------|------|---------|---------|-------|--------------------| This would highlight the active profile in the The current implementation looks like this: minikube profile list
|-----------|-----------|---------|--------------|------|---------|---------|-------|--------------------|
| Profile | VM Driver | Runtime | IP | Port | Version | Status | Nodes | Active |
|-----------|-----------|---------|--------------|------|---------|---------|-------|--------------------|
| minikube | docker | docker | 192.168.49.2 | 8443 | v1.28.4 | Running | 1 | |
| minikube2 | docker | docker | 192.168.58.2 | 8443 | v1.28.4 | Running | 1 | * |
|-----------|-----------|---------|--------------|------|---------|---------|-------|--------------------| I will open a PR following this comment. Please let me know, what you think about this idea @medyagh. If you are fine with it, I will update the test cases and the documentation. |
@Skalador I think that is a great idea ! I agree that we need to note both Active Profile and Active Context, |
@Skalador Hi I've been looking into this as well. If you have time today or this week maybe we can connect and discuss the implementation? |
Hi,
@medyagh thanks for supporting my proposal. I think I have not changed anything w.r.t the JSON data, as just the CLI output is changed. But I will confirm the changes with respect to the json data and possible impacts. I wanted to get your confirmation before digging deeper into this idea.
@coderrick sure we can work together on this feature, as this is my first contribution to this project and I am sure it will help getting started. Is there some slack/discord channel or something similar for minikube? |
Hi @medyagh again, I have extended the type |
|
Thanks, @Skalador for taking this. |
/triage accepted |
Fixed by the following PR: #17735 |
You are welcome :) |
This issue is labeled with You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
@Shubham82: Those labels are not set on the issue: In response to this:
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. |
/priority important-soon |
/triage accepted |
Closing this issue, as it is resolved by PR #17735 |
What Happened?
The Value for the Current profile is showing wrong under the Active column when running the command
minikube profile list
.Please find the observation below:
Created 2 minikube profile i.e minikube and minikube2
First minikube profile:
Second minikube profile:
As you see above the current profile is shown as
minikube
notminikube2
while the correct value for the current profile isminikube2
(see kubectl config command above).Attach the log file
None.
Operating System
Ubuntu
Driver
Docker
The text was updated successfully, but these errors were encountered: