diff --git a/main.tf b/main.tf index c7fa79f2..5b2b8325 100644 --- a/main.tf +++ b/main.tf @@ -203,25 +203,15 @@ resource "helm_release" "cloud_monitoring_agent" { "ebpf": "enabled": ${var.enable_universal_ebpf} "kind": "universal_ebpf" - "sysdig": - "tolerations": + "tolerations": %{for toleration in var.tolerations~} -%{if toleration.key != null~} - - "key": ${toleration.key} -%{endif~} -%{if toleration.operator != null~} - - "operator": ${toleration.operator} -%{endif~} -%{if toleration.value != null~} - - "value": ${toleration.value} -%{endif~} -%{if toleration.effect != null~} - - "effect": ${toleration.effect} -%{endif~} -%{if toleration.tolerationSeconds != null~} - - "tolerationSeconds": ${toleration.tolerationSeconds} -%{endif~} + -%{if toleration.key != null} key: "${toleration.key}"%{endif} +%{if toleration.operator != null} operator: "${toleration.operator}"%{endif} +%{if toleration.value != null} value: "${toleration.value}"%{endif} +%{if toleration.effect != null} effect: "${toleration.effect}"%{endif} +%{if toleration.tolerationSeconds != null} tolerationSeconds: ${toleration.tolerationSeconds}%{endif} %{endfor~} + "sysdig": "settings": "host_scanner": "enabled": ${var.enable_host_scanner} diff --git a/tests/pr_test.go b/tests/pr_test.go index 08dd6207..7797e10e 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -264,6 +264,7 @@ func TestRunAgentClassicKubernetes(t *testing.T) { }) options.TerraformVars = map[string]interface{}{ "datacenter": "syd01", + "prefix": options.Prefix, } output, err := options.RunTestConsistency()