From 02955b57c7687289d927b4d1feb57e21609ddd7b Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 14 Sep 2022 11:00:16 +0300 Subject: [PATCH] test/e2e: fix segfault in case no e2e config file is specified --- test/e2e/utils/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/utils/config.go b/test/e2e/utils/config.go index b5d68969d1..ab8b3dbfce 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 != "" {