-
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 getting of gateway IP for podman driver #11300
Conversation
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 54.9s 51.8s 50.7s 52.2s 51.6s Times for minikube ingress: 44.0s 35.5s 34.8s 35.9s 35.4s docker driver with docker runtime
Times for minikube (PR 11300) start: 22.0s 22.6s 23.1s 22.6s 22.9s Times for minikube ingress: 32.0s 39.1s 36.5s 30.1s 28.5s docker driver with containerd runtime
Times for minikube start: 44.5s 43.8s 47.3s 43.8s 48.9s |
kvm2 driver with docker runtime
Times for minikube ingress: 43.3s 43.7s 43.7s 46.3s 36.8s Times for minikube start: 49.2s 49.2s 47.7s 48.0s 49.6s docker driver with docker runtime
Times for minikube start: 22.5s 21.6s 22.7s 21.9s 21.6s Times for minikube ingress: 33.0s 36.0s 34.0s 34.5s 34.5s docker driver with containerd runtime
Times for minikube start: 30.9s 42.6s 43.5s 46.1s 43.1s |
kvm2 driver with docker runtime
Times for minikube ingress: 34.8s 35.3s 35.3s 35.7s 34.3s Times for minikube (PR 11300) start: 47.2s 50.0s 47.0s 51.6s 51.6s docker driver with docker runtime
Times for minikube start: 23.0s 21.1s 22.5s 21.8s 20.9s Times for minikube ingress: 28.0s 32.0s 31.0s 29.0s 30.5s docker driver with containerd runtime
Times for minikube start: 30.8s 42.9s 43.8s 43.0s 43.3s |
kvm2 driver with docker runtime
Times for minikube ingress: 48.3s 35.7s 35.7s 43.2s 43.4s Times for minikube (PR 11300) start: 51.2s 49.2s 50.9s 49.4s 49.1s docker driver with docker runtime
Times for minikube start: 48.3s 21.6s 21.9s 21.9s 21.9s Times for minikube ingress: 37.2s 34.5s 34.5s 33.5s 33.5s docker driver with containerd runtime
Times for minikube start: 44.5s 43.2s 43.6s 43.2s 43.0s |
} | ||
} | ||
klog.Infof("Couldn't find gateway for container %s", containerName) | ||
return "", nil |
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.
shouldn't this be returning error ? instead of nil ?
how about we define an nil error before the for loop
var gateErr error
for _, network := range []string{containerName, defaultBridgeName(ociBin)} {....
if err != nil {
gateErr = err
}
...}
return "", gateErr
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.
don't think this is a good idea. it would break a lot. an empty gateway IP is a valid value and the corresponding err is expected to be nil
in other places where containerGatewayIP
is called
Please check the failed test |
@ilya-zuyev: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
kvm2 driver with docker runtime
Times for minikube start: 46.2s 46.4s 47.5s 46.1s 48.0s Times for minikube ingress: 38.2s 43.8s 34.3s 42.8s 41.9s docker driver with docker runtime
Times for minikube start: 23.4s 21.2s 22.4s 21.9s 21.7s Times for minikube ingress: 34.0s 37.5s 33.0s 32.5s 32.0s docker driver with containerd runtime
Times for minikube start: 31.7s 43.7s 44.1s 43.4s 43.4s |
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.
Thank you @ilya-zuyev
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ilya-zuyev, medyagh 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 |
Fixes #11293