mirror of https://github.com/k3s-io/k3s
Merge pull request #27589 from mtaufen/e2e_teardown_fix
Automatic merge from submit-queue Allocate default killCmd structs in newE2eService function Fixes #27582 [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()pull/6/head
commit
15fdd1db63
|
@ -319,9 +319,15 @@ type killCmd struct {
|
|||
}
|
||||
|
||||
func (k *killCmd) Kill() error {
|
||||
if k == nil {
|
||||
glog.V(2).Infof("The killCmd is nil, nothing will be killed")
|
||||
return nil
|
||||
}
|
||||
|
||||
if k.override != nil {
|
||||
return k.override.Run()
|
||||
}
|
||||
|
||||
name := k.name
|
||||
cmd := k.cmd
|
||||
|
||||
|
|
Loading…
Reference in New Issue