diff --git a/pkg/drivers/kic/kic.go b/pkg/drivers/kic/kic.go index 6c01be18ba73..e296b327b83f 100644 --- a/pkg/drivers/kic/kic.go +++ b/pkg/drivers/kic/kic.go @@ -403,7 +403,7 @@ func killAPIServerProc(runner command.Runner) error { pid, err := strconv.Atoi(rr.Stdout.String()) if err == nil { // this means we have a valid pid glog.Warningf("Found a kube-apiserver running with pid %d, will try to kill the proc", pid) - if _, err = runner.RunCmd(exec.Command("pkill", "-9", string(pid))); err != nil { + if _, err = runner.RunCmd(exec.Command("pkill", "-9", fmt.Sprint(pid))); err != nil { return errors.Wrap(err, "kill") } }