diff --git a/test/e2e/utils/config.go b/test/e2e/utils/config.go index b5d68969d..ab8b3dbfc 100644 --- a/test/e2e/utils/config.go +++ b/test/e2e/utils/config.go @@ -58,7 +58,7 @@ func (conf *E2EConfig) GetKubeletConfig() KubeletConfig { ConfigPath: DefaultConfigPath, PodResourcesSocketPath: DefaultPodResourcesSocketPath, } - if conf.Kubelet == nil { + if conf == nil || conf.Kubelet == nil { return kcfg } if conf.Kubelet.ConfigPath != "" {