diff --git a/pkg/actions/addon/tasks.go b/pkg/actions/addon/tasks.go index 90a44fdf5a..74a4ae1c92 100644 --- a/pkg/actions/addon/tasks.go +++ b/pkg/actions/addon/tasks.go @@ -29,10 +29,7 @@ func CreateAddonTasks(ctx context.Context, cfg *api.ClusterConfig, clusterProvid if addonInfo.IsDefault && !slices.ContainsFunc(cfg.Addons, func(a *api.Addon) bool { return strings.EqualFold(a.Name, addonName) }) { - if !cfg.IsAutoModeEnabled() { - addons = append(addons, &api.Addon{Name: addonName}) - autoDefaultAddonNames = append(autoDefaultAddonNames, addonName) - } else if addonInfo.IsDefaultAutoMode { + if !cfg.IsAutoModeEnabled() || addonInfo.IsDefaultAutoMode { addons = append(addons, &api.Addon{Name: addonName}) autoDefaultAddonNames = append(autoDefaultAddonNames, addonName) }