File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -414,16 +414,23 @@ docker-cli install instructions: https://minikube.sigs.k8s.io/docs/tutorials/doc
414
414
}
415
415
cmd := exec .Command (path , d .GetSSHKeyPath ())
416
416
cmd .Stderr = os .Stderr
417
- cmd .Env = append (cmd .Env , fmt .Sprintf ("SSH_AUTH_SOCK=%s" , co .Config .SSHAuthSock ))
418
- cmd .Env = append (cmd .Env , fmt .Sprintf ("SSH_AGENT_PID=%d" , co .Config .SSHAgentPID ))
417
+
418
+ // TODO: refactor to work with docker, temp fix to resolve regression
419
+ if cr == constants .Containerd {
420
+ cmd .Env = append (cmd .Env , fmt .Sprintf ("SSH_AUTH_SOCK=%s" , co .Config .SSHAuthSock ))
421
+ cmd .Env = append (cmd .Env , fmt .Sprintf ("SSH_AGENT_PID=%d" , co .Config .SSHAgentPID ))
422
+ }
419
423
err = cmd .Run ()
420
424
if err != nil {
421
425
exit .Error (reason .IfSSHClient , "Error with ssh-add" , err )
422
426
}
423
- }
424
427
425
- // eventually, run something similar to ssh --append-known
426
- appendKnownHelper (nodeName , true )
428
+ // TODO: refactor to work with docker, temp fix to resolve regression
429
+ if cr == constants .Containerd {
430
+ // eventually, run something similar to ssh --append-known
431
+ appendKnownHelper (nodeName , true )
432
+ }
433
+ }
427
434
},
428
435
}
429
436
You can’t perform that action at this time.
0 commit comments