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

Use SSH tunnel if user specifies bindAddress #14951

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

spowelljr
Copy link
Member

Fixes #14712

Currently, if the user is on Linux and using the Docker driver, specifying the bindAddress doesn't take effect as driver.NeedsPortForward returns false and the SSH tunnel is not used.

Updated the logic gating so if the user is on Linux and using the Docker driver and they specify the bindAddress it will use the SSH tunnel.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 14, 2022
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 14, 2022
Copy link
Contributor

@klaases klaases left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary: if it is not KIC, false, else use SSH tunnel if needs port forward or has a bind address.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: klaases, spowelljr

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@spowelljr
Copy link
Member Author

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Sep 28, 2022
@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 14951) |
+----------------+----------+---------------------+
| minikube start | 55.6s    | 55.0s               |
| enable ingress | 28.4s    | 27.8s               |
+----------------+----------+---------------------+

Times for minikube start: 53.9s 55.3s 56.2s 55.2s 57.5s
Times for minikube (PR 14951) start: 55.4s 54.1s 55.3s 55.3s 55.1s

Times for minikube ingress: 28.1s 28.7s 28.6s 28.2s 28.7s
Times for minikube (PR 14951) ingress: 28.1s 29.1s 26.6s 27.2s 28.1s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 14951) |
+----------------+----------+---------------------+
| minikube start | 27.4s    | 28.1s               |
| enable ingress | 22.9s    | 23.5s               |
+----------------+----------+---------------------+

Times for minikube ingress: 22.9s 23.5s 22.5s 22.5s 23.0s
Times for minikube (PR 14951) ingress: 24.0s 24.0s 24.5s 23.0s 22.0s

Times for minikube start: 28.0s 28.7s 26.7s 26.5s 27.1s
Times for minikube (PR 14951) start: 29.9s 27.0s 28.0s 27.7s 27.9s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 14951) |
+----------------+----------+---------------------+
| minikube start | 22.7s    | 23.0s               |
| enable ingress | 27.3s    | 27.4s               |
+----------------+----------+---------------------+

Times for minikube start: 21.9s 23.0s 22.8s 22.9s 22.8s
Times for minikube (PR 14951) start: 23.1s 23.0s 23.3s 22.5s 22.8s

Times for minikube ingress: 27.0s 27.0s 27.5s 27.5s 27.5s
Times for minikube (PR 14951) ingress: 27.5s 27.5s 27.0s 27.5s 27.5s

@minikube-pr-bot
Copy link

These are the flake rates of all failed tests.

Environment Failed Tests Flake Rate (%)
Docker_macOS TestDownloadOnly/v1.25.2/preload-exists (gopogh) n/a
Docker_macOS TestAddons/Setup (gopogh) 0.00 (chart)
Docker_macOS TestBinaryMirror (gopogh) 0.00 (chart)
Docker_macOS TestDownloadOnlyKic (gopogh) 0.00 (chart)
Docker_macOS TestErrorSpam/setup (gopogh) 0.00 (chart)
Docker_macOS TestFunctional/parallel/MountCmd/any-port (gopogh) 0.00 (chart)
Hyperkit_macOS TestJSONOutput/pause/Command (gopogh) 3.65 (chart)
Hyperkit_macOS TestJSONOutput/start/Command (gopogh) 3.65 (chart)
Hyperkit_macOS TestJSONOutput/unpause/Command (gopogh) 3.65 (chart)
Docker_Linux TestMultiNode/serial/StartAfterStop (gopogh) 8.55 (chart)
none_Linux TestAddons/parallel/MetricsServer (gopogh) 12.50 (chart)
Hyper-V_Windows TestNetworkPlugins/group/kubenet/Start (gopogh) 20.59 (chart)
Docker_Linux_containerd TestOffline (gopogh) 26.11 (chart)
Docker_Linux_containerd TestAddons/Setup (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/parallel/DashboardCmd (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/parallel/MountCmd/any-port (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/parallel/MySQL (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/parallel/PersistentVolumeClaim (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/parallel/ServiceCmd (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/parallel/ServiceCmdConnect (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/parallel/TunnelCmd/serial/AccessDirect (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/parallel/TunnelCmd/serial/WaitService/Setup (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/serial/ExtraConfig (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/serial/SoftStart (gopogh) 28.03 (chart)
Docker_Linux_containerd TestFunctional/serial/StartWithProxy (gopogh) 28.03 (chart)
Docker_Linux_containerd TestIngressAddonLegacy/serial/ValidateIngressAddonActivation (gopogh) 28.03 (chart)
Docker_Linux_containerd TestIngressAddonLegacy/StartLegacyK8sCluster (gopogh) 28.03 (chart)
Docker_Linux_containerd TestJSONOutput/start/Command (gopogh) 28.03 (chart)
Docker_Linux_containerd TestMultiNode/serial/AddNode (gopogh) 28.03 (chart)
Docker_Linux_containerd TestMultiNode/serial/DeployApp2Nodes (gopogh) 28.03 (chart)
More tests... Continued...

Too many tests failed - See test logs for more details.

To see the flake rates of all tests by environment, click here.

@spowelljr spowelljr merged commit ab9130b into kubernetes:master Oct 3, 2022
@spowelljr spowelljr deleted the fixLinuxAddressBinding branch October 3, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

minikube tunnel bind address flag doesn't work on Linux
4 participants