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:
commit
37e21bfd37
1 changed files with 1 additions and 1 deletions
|
@ -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 != "" {
|
||||
|
|
Loading…
Reference in a new issue