Skip to content

Commit

Permalink
Add skipCRDs possibility to the helmutil.Install
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Mar 22, 2024
1 parent d365396 commit 71b5447
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/helmutil/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ func ListInstallations(cfg *action.Configuration) ([]*release.Release, error) {
return listAction.Run()
}

func Install(cfg *action.Configuration, releaseName, path, namespace string, values map[string]interface{}, devel bool) (*release.Release, error) {
func Install(cfg *action.Configuration, releaseName, path, namespace string, values map[string]interface{}, devel bool, skipCRDs bool) (*release.Release, error) {
installAction := action.NewInstall(cfg)
installAction.ReleaseName = releaseName
installAction.Namespace = namespace
installAction.CreateNamespace = true
installAction.IncludeCRDs = true
if skipCRDs {
installAction.SkipCRDs = true
}
if devel {
installAction.Devel = true
installAction.Version = ">0.0.0.0"
Expand Down

0 comments on commit 71b5447

Please sign in to comment.