hashicorp / terraform-provider-helm

Terraform Helm provider
https://www.terraform.io/docs/providers/helm/
Mozilla Public License 2.0
1.01k stars 371 forks source link

Question about when helm values need escaping #1446

Closed asheynkmantyler closed 3 months ago

asheynkmantyler commented 3 months ago

If you prefer, you can also ask your question in the Kubernetes community Slack channel #terraform-providers. (Sign up here)

Terraform version, Kubernetes provider version and Kubernetes version

Terraform version: 1.8.3
Helm Provider version: 2.14.0
Kubernetes version: 1.29

Question

This is related to https://github.com/hashicorp/terraform-provider-helm/issues/1280. The question is which characters need to be escaped? The example https://github.com/hashicorp/terraform-provider-helm/blob/main/docs/resources/release.md#example-usage---chart-repository-configured-outside-of-terraform mentions [ ] { } . , but even your example there,

set {
  name  = "grafana.ingress.annotations.alb\\.ingress\\.kubernetes\\.io/group\\.name"
  value = "shared-ingress"
}

does not appear to be escaping all periods. Also, we have tf with [ ] { } and . and it appears to be translating correctly.

thank you

korjek commented 2 months ago

@asheynkmantyler did you find the answer?