|
|
|
@ -187,9 +187,11 @@ func createHelmReleaseCmdRun(cmd *cobra.Command, args []string) error {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if helmReleaseArgs.createNamespace {
|
|
|
|
|
helmRelease.Spec.Install = &helmv2.Install{
|
|
|
|
|
CreateNamespace: helmReleaseArgs.createNamespace,
|
|
|
|
|
if helmRelease.Spec.Install == nil {
|
|
|
|
|
helmRelease.Spec.Install = &helmv2.Install{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
helmRelease.Spec.Install.CreateNamespace = helmReleaseArgs.createNamespace
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if helmReleaseArgs.saName != "" {
|
|
|
|
@ -197,6 +199,10 @@ func createHelmReleaseCmdRun(cmd *cobra.Command, args []string) error {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if helmReleaseArgs.crds != "" {
|
|
|
|
|
if helmRelease.Spec.Install == nil {
|
|
|
|
|
helmRelease.Spec.Install = &helmv2.Install{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
helmRelease.Spec.Install.CRDs = helmv2.Create
|
|
|
|
|
helmRelease.Spec.Upgrade = &helmv2.Upgrade{CRDs: helmv2.CRDsPolicy(helmReleaseArgs.crds.String())}
|
|
|
|
|
}
|
|
|
|
|