1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00

Merge pull request #891 from marquiz/fixes/e2e-no-config

test/e2e: fix segfault in case no e2e config file is specified
This commit is contained in:
Kubernetes Prow Robot 2022-10-10 04:09:20 -07:00 committed by GitHub
commit 37e21bfd37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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