Merge pull request #76321 from danielqsj/ssh

remove SSHTunnelList TODO
This commit is contained in:
Kubernetes Prow Robot
2019-07-09 10:12:04 -07:00
committed by GitHub

View File

@@ -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)
}
// Prefer same tunnel as kubelet
// TODO: Change l.entries to a map of address->tunnel
for _, entry := range l.entries {
if entry.Address == addr {
return entry.Tunnel, nil