From aec6fdc25aa793ffb7c08f6dc8d4a432d0b962d4 Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Mon, 23 Mar 2020 20:39:21 -0700 Subject: [PATCH] initialize kic runner in stop --- pkg/drivers/kic/kic.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/drivers/kic/kic.go b/pkg/drivers/kic/kic.go index bdeefc0665..2055f91931 100644 --- a/pkg/drivers/kic/kic.go +++ b/pkg/drivers/kic/kic.go @@ -248,6 +248,8 @@ func (d *Driver) GetState() (state.State, error) { // Kill stops a host forcefully, including any containers that we are managing. func (d *Driver) Kill() error { + // on init this doesn't get filled when called from cmd + d.exec = command.NewKICRunner(d.MachineName, d.OCIBinary) if err := kubelet.ForceStop(d.exec); err != nil { glog.Warningf("couldn't force stop kubelet. will continue with kill anyways: %v", err) } @@ -317,6 +319,8 @@ func (d *Driver) Start() error { // Stop a host gracefully, including any containers that we are managing. func (d *Driver) Stop() error { + // on init this doesn't get filled when called from cmd + d.exec = command.NewKICRunner(d.MachineName, d.OCIBinary) // docker does not send right SIG for systemd to know to stop the systemd. // to avoid bind address be taken on an upgrade. more info https://github.com/kubernetes/minikube/issues/7171 if err := kubelet.Stop(d.exec); err != nil {