Merge pull request #21786 from nirs/registry-creds-fix

registry-creds: Fix segfault without config file
pull/21791/head
Medya Ghazizadeh 2025-10-23 11:15:11 -07:00 committed by GitHub
commit 5ca02f9f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -156,10 +156,9 @@ func loadAddonConfigFile(addon, configFilePath string) (ac *addonConfig) {
exit.Message(reason.Kind{ExitCode: reason.ExProgramConfig, Advice: "provide a valid config file"},
fmt.Sprintf("error reading config file: %v", err))
}
return &cf.Addons
}
return nil
return &cf.Addons
}
// Processes metallb addon config from configFile if it exists otherwise resorts to default behavior