Closed chrxmvtik closed 4 days ago
Hi @chrxmvtik, I have tried your example and it seems to work on my end - output "test" { value = data.helm_template.ceph_csi_cephfs.namespace }
. Also the helm_template
is a data source & will not create anything but instead just render charts.
Hi @chrxmvtik, I have tried your example and it seems to work on my end -
output "test" { value = data.helm_template.ceph_csi_cephfs.namespace }
. Also thehelm_template
is a data source & will not create anything but instead just render charts.
Hi, thanks for response, however..
Provided output simply returns a namespace field which you set using namespace = "ceph-csi-cephfs"
.
My question is what does create_namespace
parameter do when using helm_template data source?
Should it render additional namespace manifest and add it to manifests list, shouldn't it? Or it is just useless parameter?
Helm renders only resources that are defined in the templates. This specific field does nothing in the context of this resource, it is present there because it is also in the corresponding helm template
subcommand.
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Debug Output
NOTE: In addition to Terraform debugging, please set HELM_DEBUG=1 to enable debugging info from helm.
Panic Output
Steps to Reproduce
terraform apply
Expected Behavior
helm_template should include namespace manifest in manifests list
Actual Behavior
There is no namespace manifest, so can't apply manifest.
Important Factoids
References
Community Note