Skip to content

Commit

Permalink
Merge pull request #891 from marquiz/fixes/e2e-no-config
Browse files Browse the repository at this point in the history
test/e2e: fix segfault in case no e2e config file is specified
  • Loading branch information
k8s-ci-robot authored Oct 10, 2022
2 parents 3981e12 + 02955b5 commit 37e21bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 37e21bf

Please sign in to comment.