mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-20 01:01:22 +00:00
commit
437b967fdf
@ -384,7 +384,6 @@ func (l *SSHTunnelList) pickTunnel(addr string) (tunnel, error) {
|
|||||||
return nil, fmt.Errorf("No SSH tunnels currently open. Were the targets able to accept an ssh-key for user %q?", l.user)
|
return nil, fmt.Errorf("No SSH tunnels currently open. Were the targets able to accept an ssh-key for user %q?", l.user)
|
||||||
}
|
}
|
||||||
// Prefer same tunnel as kubelet
|
// Prefer same tunnel as kubelet
|
||||||
// TODO: Change l.entries to a map of address->tunnel
|
|
||||||
for _, entry := range l.entries {
|
for _, entry := range l.entries {
|
||||||
if entry.Address == addr {
|
if entry.Address == addr {
|
||||||
return entry.Tunnel, nil
|
return entry.Tunnel, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user