Currently, I am utilizing CDKTF to facilitate the deployment of the datadog helm chart into a kubernetes cluster. My objective is to assign a specific value to confd, however, the issue arises when the spaces in my typescript multiline string do not maintain their formatting. Below is an example of how I am defining the confd value in typescript:
new helm.Release(this, "datadog-agent", {
chart: "datadog",
name: "datadog",
repository: "https://helm.datadoghq.com",
version: "3.1.3",
set: [
{
name: "clusterAgent.confd",
value: `postgres.yaml: |-
cluster_check: true
init_config:
instances:
\t- dbm: true
\t host: <redacted>
\t port: 5432
\t username: datadog
\t password: <redacted>
`
}
],
});
Upon attempting to deploy this configuration, I notice the following discrepancy:
+ set {
+ name = "clusterAgent.confd"
+ value = <<-EOT
postgres.yaml: |-
cluster_check: true
init_config:
instances:
- dbm: true
host: <redacted>
port: 5432
username: datadog
password: <redacted>
EOT
This output suggests that the multiline string has been stripped of all its spaces and tabs.
Is there a way for me to ensure that CDKTF preserves the spaces in my multiline string?