<p><strong>Cannot install the helm chart but when I use raw file generated by helm, I am able to install via kubectl apply.</strong></p>
<p>Following error is displayed when i use <code>helm install myChart . --debug</code></p>
<pre><code>Error: cannot re-use a name that is still in use
helm.go:88: [debug] cannot re-use a name that is still in use
helm.sh/helm/v3/pkg/action.(*Install).availableName
        helm.sh/helm/v3/pkg/action/install.go:442
helm.sh/helm/v3/pkg/action.(*Install).Run
        helm.sh/helm/v3/pkg/action/install.go:185
main.runInstall
        helm.sh/helm/v3/cmd/helm/install.go:242
main.newInstallCmd.func2
        helm.sh/helm/v3/cmd/helm/install.go:120
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.1.3/command.go:852
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.1.3/command.go:960
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.1.3/command.go:897
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
        runtime/proc.go:225
runtime.goexit
        runtime/asm_amd64.s:1371
</code></pre>
<p>Installing raw file generated by helm with the following command works great but when I run <code>helm install myChart .</code> it gives the above error</p>
<pre><code>helm install myChart . --dry-run &gt; myChart.yaml
kubectl apply -f myChart.yaml
</code></pre>

Encycode
<p>Use upgrade instead install:</p>
<pre><code>helm upgrade -i myChart .
</code></pre>
<p>The <code>-i</code> flag install the release if it doesn't exist.</p>
