-
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
New flag "--binary-mirror" to override mirror URL downloading (kubectl, kubelet, & kubeadm) #12804
Conversation
Hi @presztak. 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? |
bd1c895
to
73255f4
Compare
@presztak would you plz add in PR description the example using it with output ? |
cmd/minikube/cmd/config/config.go
Outdated
@@ -163,6 +163,10 @@ var settings = []Setting{ | |||
name: "native-ssh", | |||
set: SetBool, | |||
}, | |||
{ | |||
name: "kube-binaries-mirror", |
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.
I suggest putting this in cluster config struct instead of global config
So we can have multiple clusters with different mirrors and we could test in integration tests
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.
Fixed.
73255f4
to
26e98e0
Compare
@medyagh description was changed. |
cmd/minikube/cmd/start_flags.go
Outdated
@@ -124,6 +124,7 @@ const ( | |||
listenAddress = "listen-address" | |||
extraDisks = "extra-disks" | |||
certExpiration = "cert-expiration" | |||
kubeBinariesMirror = "kube-binaries-mirror" |
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.
I think this would be easier for users to find and use if it is called "binary-mirror"
what do u think ?
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.
Sounds good, shorter name will be better
86607ff
to
cc9abb2
Compare
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube ingress: 31.8s 31.4s 32.3s 31.3s 32.3s Times for minikube start: 49.4s 47.8s 46.4s 47.6s 48.5s docker driver with docker runtime
Times for minikube (PR 12804) start: 23.2s 24.3s 24.2s 23.6s 22.8s Times for minikube ingress: 34.9s 27.5s 27.5s 27.0s 35.0s docker driver with containerd runtime
Times for minikube start: 47.3s 43.1s 42.3s 42.8s 41.9s Times for minikube ingress: 29.9s 19.0s 18.0s 18.0s 18.0s |
These are the flake rates of all failed tests.
Too many tests failed - See test logs for more details. To see the flake rates of all tests by environment, click here. |
cc9abb2
to
5a7b551
Compare
5a7b551
to
20d3c76
Compare
@medyagh I added integration test as you requested on slack. I tested this only on amd64 architecture. |
kvm2 driver with docker runtime
Times for minikube start: 46.4s 45.5s 44.5s 44.2s 43.7s Times for minikube ingress: 26.6s 28.6s 26.6s 29.6s 29.1s docker driver with docker runtime
Times for minikube start: 26.8s 27.0s 26.6s 26.6s 25.5s Times for minikube ingress: 21.9s 23.9s 21.9s 22.9s 21.9s docker driver with containerd runtime
Times for minikube start: 34.5s 44.8s 41.6s 41.2s 40.6s Times for minikube ingress: 18.9s 28.9s 33.5s 22.9s 23.4s |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, presztak 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 |
This PR adds flag
kube-binaries-mirror
tominikube start
command.Usage:
minikube start --kube-binaries-mirror http://localhost:8000 --download-only
Output:
Fixes #11935