Skip to content

Commit

Permalink
Update pkg/actions/addon/tasks.go
Browse files Browse the repository at this point in the history
Co-authored-by: Amine <[email protected]>
  • Loading branch information
gustavodiaz7722 and a-hilaly authored Jan 15, 2025
1 parent c77fe7f commit 4960fee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/actions/addon/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 4960fee

Please sign in to comment.