1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-14 20:56:42 +00:00

test/e2e: fix segfault in case no e2e config file is specified

This commit is contained in:
Markus Lehtonen 2022-09-14 11:00:16 +03:00
parent 9d5d7cfbee
commit 02955b57c7

View file

@ -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 != "" {