Skip to content

Commit

Permalink
Hide ConfigMap collection behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
katyanna committed Oct 23, 2023
1 parent 131d531 commit dbad6dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions controller/stackset.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,11 @@ func (c *StackSetController) collectResources(ctx context.Context) (map[types.UI
return nil, err
}

err = c.collectConfigMaps(ctx, stacksets)
if err != nil {
return nil, err
if c.configMapSupportEnabled {
err = c.collectConfigMaps(ctx, stacksets)
if err != nil {
return nil, err
}
}

return stacksets, nil
Expand Down

0 comments on commit dbad6dd

Please sign in to comment.