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:
parent
9d5d7cfbee
commit
02955b57c7
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…
Add table
Reference in a new issue