diff --git a/cmd/flux/create_helmrelease.go b/cmd/flux/create_helmrelease.go index 4695ed1c..6a035858 100644 --- a/cmd/flux/create_helmrelease.go +++ b/cmd/flux/create_helmrelease.go @@ -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 != "" {