Merge pull request #1830 from makkes/fix-create-hr

fix: don't set 'Install' field by default in 'create hr'
pull/1844/head
Stefan Prodan 3 years ago committed by GitHub
commit 0a92c61b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -182,13 +182,16 @@ func createHelmReleaseCmdRun(cmd *cobra.Command, args []string) error {
},
},
},
Install: &helmv2.Install{
CreateNamespace: helmReleaseArgs.createNamespace,
},
Suspend: false,
},
}
if helmReleaseArgs.createNamespace {
helmRelease.Spec.Install = &helmv2.Install{
CreateNamespace: helmReleaseArgs.createNamespace,
}
}
if helmReleaseArgs.saName != "" {
helmRelease.Spec.ServiceAccountName = helmReleaseArgs.saName
}

Loading…
Cancel
Save