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

minikube config set embed-certs true does have no effect #11253

Closed
dominikbraun opened this issue May 2, 2021 · 6 comments · Fixed by #11576
Closed

minikube config set embed-certs true does have no effect #11253

dominikbraun opened this issue May 2, 2021 · 6 comments · Fixed by #11576
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@dominikbraun
Copy link
Contributor

Steps to reproduce the issue:

  1. Run minikube config set embed-certs true.
  2. Verify that it has been set: minikube config get embed-certs
  3. Restart minikube.
  4. View $HOME/.kube/config. There is no field user.client-certificate-data in the minikube profile.

Expected behavior

The certificate should be embedded directly in the minikube profile inside $HOME/.kube/config.

However, starting the cluster using minikube start --embed-certs will work.

@medyagh
Copy link
Member

medyagh commented May 2, 2021

@dominikbraun the confit set ... is meant for global config, for all profiles.
I dont think we have a global field for embed-cents in minikube,

but if you think we should be able to set this globally I would be happy to add this to minikube ! And accept any PR that does it.

Also minikube should have Exited with a usage message that That specific config can not be set globally when it just lied and let you set that config without any error while it was not used.

So thank you for filling this issue ! Are you interested in making a contribution to minikube’s code?

@medyagh medyagh added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels May 7, 2021
@vishjain
Copy link
Contributor

/assign

@JacekDuszenko
Copy link
Contributor

/assign

@JacekDuszenko
Copy link
Contributor

JacekDuszenko commented Jun 3, 2021

Turns out we do have a global embed-certs config field, but the deserialization bug was causing field to be ignored while determining final config during minikube start. I fixed it in #11576 and posted more information under the PR. @medyagh feel free to review. Thanks!

@vishjain
Copy link
Contributor

vishjain commented Jun 5, 2021

/unassign

@michaelschem
Copy link

I'm experiencing similar results although based off of the PR it seems like I'm supposed to set EmbedCerts instead of embed-certs. Neither work for me. minikube start --embed-certs does though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants