Merge pull request #21786 from nirs/registry-creds-fix
registry-creds: Fix segfault without config filepull/21791/head
commit
5ca02f9f57
|
|
@ -156,10 +156,9 @@ func loadAddonConfigFile(addon, configFilePath string) (ac *addonConfig) {
|
||||||
exit.Message(reason.Kind{ExitCode: reason.ExProgramConfig, Advice: "provide a valid config file"},
|
exit.Message(reason.Kind{ExitCode: reason.ExProgramConfig, Advice: "provide a valid config file"},
|
||||||
fmt.Sprintf("error reading config file: %v", err))
|
fmt.Sprintf("error reading config file: %v", err))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return &cf.Addons
|
return &cf.Addons
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Processes metallb addon config from configFile if it exists otherwise resorts to default behavior
|
// Processes metallb addon config from configFile if it exists otherwise resorts to default behavior
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue