remove todo in pkg/ssh

This commit is contained in:
danielqsj 2019-06-05 10:19:24 +08:00
parent 0d1007f84b
commit cb218ce620

View File

@ -383,7 +383,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