-
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
Fix embed-certs global config #11576
Fix embed-certs global config #11576
Conversation
Hi @JacekDuszenko. 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? |
@medyagh could you mark this PR as "ok-to-test" please? |
/ok-to-test |
/approve |
/assign @tstromberg |
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.
When set with minikube config set embed-certs true
the cluster config is:
ilyaz@skeletron --- g/minikube ‹fix-embed-certs-from-config* ?› » head ~/.minikube/profiles/minikube/config.json -n 20
{
"Name": "minikube",
"KeepContext": false,
"embed-certs": true,
"MinikubeISO": "",
"KicBaseImage": "gcr.io/k8s-minikube/kicbase-builds:v0.0.22-1620785771-11384@sha256:f5844fe35994179bbad8dda27d4912304a2fedccdf0bf93ce8b2ec2b3b83af1c",
"Memory": 8000,
"CPUs": 2,
"DiskSize": 20000,
"VMDriver": "",
"Driver": "docker",
"HyperkitVpnKitSock": "",
"HyperkitVSockPorts": [],
"DockerEnv": null,
"ContainerVolumeMounts": null,
"InsecureRegistry": null,
"RegistryMirror": null,
"HostOnlyCIDR": "192.168.99.1/24",
"HypervVirtualSwitch": "",
"HypervUseExternalSwitch": false,
Using different naming scheme for "embed-certs" is a bit ugly, we should use the same style for all fields. Also, it's probably best to avoid exceptions in serialization of individual fields of ClusterConfig
.
Let's fix the config
command instead, and use "EmbedCerts"
name to store the config value
@ilya-zuyev Sure, I'll submit a PR fix shortly |
/assign @JacekDuszenko |
kvm2 driver with docker runtime
Times for minikube start: 48.3s 47.6s 47.4s 50.0s 47.8s Times for minikube ingress: 32.8s 32.7s 33.7s 33.8s 33.2s docker driver with docker runtime
Times for minikube (PR 11576) start: 21.1s 21.5s 21.8s 21.5s 22.3s Times for minikube ingress: 26.5s 29.0s 29.0s 28.5s 28.5s docker driver with containerd runtime
Times for minikube start: 31.6s 43.0s 43.4s 47.3s 48.0s |
@ilya-zuyev @medyagh I fixed the PR. Now config is saved as |
/assign @ilya-zuyev |
kvm2 driver with docker runtime
Times for minikube ingress: 35.2s 37.8s 34.3s 37.7s 34.7s Times for minikube start: 49.9s 47.0s 49.4s 49.5s 46.2s docker driver with docker runtime
Times for minikube start: 22.3s 21.4s 21.4s 21.6s 20.9s Times for minikube ingress: 37.5s 33.0s 29.0s 36.5s 30.0s docker driver with containerd runtime
Times for minikube start: 31.5s 47.8s 43.0s 47.5s 43.4s |
Hey, @ilya-zuyev, would you mind taking a look at this? |
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.
looks good now. Thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andriyDev, ilya-zuyev, JacekDuszenko The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Great, thank you! Are we able to merge it anytime soon @ilya-zuyev? |
fixes #11253
Fix embed-certs global config by adding
embed-certs
json tag toEmbedCerts
field inClusterConfig
struct.Unmarshaler in https://github.com/kubernetes/minikube/blob/master/pkg/minikube/config/config.go#L199 wasn't able to deserialize
embed-certs
json field intoEmbedCerts
string member variable inClusterConfig
.That's why existing config in https://github.com/kubernetes/minikube/blob/master/cmd/minikube/cmd/start.go#L173 was created without given flag.
Now global config option successfully initialises cert embedding on cluster creation