-
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
MINIKUBE_ADDONS environment variable ignored #11171
Comments
@davecardwell than you for creating this sue, not all our flags are configurable by ENV but this should be easy to add support for it. (Since we are using cobra) Would you be interested to contribute this as a PR to minikube ? |
@medyagh I did try to take a quick look prior to reporting, but I’m not a Go programmer so didn’t get beyond looking for any obvious logic issues. I noticed that unlike most of the options, I will try to make time to set up the code and write a test case at least to see if I can figure it out. If anybody else with Go experience wants to jump in before then though I’d be fine with that! ;) |
Thank you for creating this issue. As you said, the addons flag is through at here. minikube/cmd/minikube/cmd/start_flags.go Line 150 in fe0a177
And the config.AddonList is used at here.minikube/pkg/minikube/node/start.go Lines 165 to 172 in 15cede5
So I think if you set some code about environment I'm looking forward to your codes. If you have any questions, please let us know. |
@govargo Thank you for the additional context. I think the main part I was unsure of was why the minikube/cmd/minikube/cmd/start_flags.go Lines 129 to 133 in fe0a177
I will try to investigate further soon. |
Hi all, I dig into the problem and it turns out that that the problem is with the viper from spf13. We are trying to capture a
I think the issue is with |
@bisakhmondal seems like you found a bug ! would u like to make a PR to fix it ? |
@medyagh can I work on this issue? // @spowelljr |
@Utkarsh-pro For sure! Just comment |
Thanks @spowelljr! /assign |
@Utkarsh-pro Do you plan on making it possible to set addons in the config or just ENV variables? |
@DimitrijeManic, PR #11469 only adds support for setting However, I'd be more than happy to add support for config too if it's a requirement and is accepted by the admins 😄 |
minikube start
does not support theMINIKUBE_ADDONS
environment variable as a proxy for the--addons
argument as it does with other options.Steps to reproduce the issue:
MINIKUBE_PROFILE=this-works MINIKUBE_ADDONS=registry minikube start
MINIKUBE_PROFILE=this-works minikube addons list
MINIKUBE_PROFILE
has taken effect (the profile is set tothis-works
), butMINIKUBE_ADDONS
has not (theregistry
addon has not been enabled).Full output of failed command:
The text was updated successfully, but these errors were encountered: