提交 c037a973 编写于 作者: P Priya Wadhwa

Restart kubeadm on soft `minikube start`

This should resolve a race condition in which the expected node IP and the ip passed into kubelet are different.

This should fix the embed-certs integration test which has been flaky for a while.
上级 269b9389
......@@ -294,6 +294,10 @@ func (d *Driver) Restart() error {
if err = d.Start(); err != nil {
return fmt.Errorf("start during restart %v", err)
}
cr := command.NewExecRunner() // using exec runner for interacting with docker/podman daemon
if _, err := cr.RunCmd(exec.Command("sudo", "systemctl", "restart", "kubelet")); err != nil {
return errors.Wrap(err, "restarting kubelet")
}
return nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册