Skip to content

Commit

Permalink
don't install CRDs of disabled subcharts
Browse files Browse the repository at this point in the history
  • Loading branch information
MBrouns committed Apr 16, 2024
1 parent 9059e7f commit 7a5e1b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/action/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ func Install(ctx context.Context, config *helmaction.Configuration, obj *v2.Helm
if err != nil {
return nil, err
}

if err := helmchartutil.ProcessDependenciesWithMerge(chrt, vals); err != nil {
return nil, err
}

if err := applyCRDs(config, policy, chrt, setOriginVisitor(v2.GroupVersion.Group, obj.Namespace, obj.Name)); err != nil {
return nil, fmt.Errorf("failed to apply CustomResourceDefinitions: %w", err)
}
Expand Down

0 comments on commit 7a5e1b7

Please sign in to comment.