Separating/Upgrading CRDs with helm template produces different results to stdout vs outputDir

Anyone who tries to split CRDs from the rest of templates should read this issue: helm template produces different results to stdout vs outputDir · Issue #11321 · helm/helm · GitHub especially if using terraform helm provider (starting thread on the issue is here: Upgrading CRDs · Issue #944 · hashicorp/terraform-provider-helm · GitHub)