mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 22:29:32 +00:00
Adding cli to custom klipper helm image (#7682)
Adding cli to custom klipper helm image Signed-off-by: Vitor Savian <vitor.savian@suse.com>
This commit is contained in:
@@ -207,7 +207,9 @@ func coreControllers(ctx context.Context, sc *Context, config *Config) error {
|
||||
}
|
||||
|
||||
// apply SystemDefaultRegistry setting to Helm before starting controllers
|
||||
if config.ControlConfig.SystemDefaultRegistry != "" {
|
||||
if config.ControlConfig.HelmJobImage != "" {
|
||||
helmchart.DefaultJobImage = config.ControlConfig.HelmJobImage
|
||||
} else if config.ControlConfig.SystemDefaultRegistry != "" {
|
||||
helmchart.DefaultJobImage = config.ControlConfig.SystemDefaultRegistry + "/" + helmchart.DefaultJobImage
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user