Skip to content

Commit

Permalink
fix: acknowledge install.skipCRDs (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Jul 4, 2023
1 parent f5a5d33 commit 28c9f1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/build/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,12 @@ func (h *Helm) renderRelease(ctx context.Context, hr helmv1.HelmRelease, values
client.ReleaseName = hr.GetReleaseName()
client.Namespace = ns
client.DryRun = true

client.IncludeCRDs = true
if hr.Spec.Install != nil && hr.Spec.Install.SkipCRDs {
client.IncludeCRDs = false
}

client.KubeVersion = h.opts.KubeVersion
client.ClientOnly = true
client.Timeout = hr.Spec.GetInstall().GetTimeout(hr.GetTimeout()).Duration
Expand Down

0 comments on commit 28c9f1f

Please sign in to comment.