# Dynatrace Operator Helm Chart Env Variables

**URL:** <https://community.dynatrace.com/t/dynatrace-operator-helm-chart-env-variables/35045>\
**Category:** Container platforms\
**Tags:** terraform, kubernetes\
**Created:** [May 4, 2022, 10:33pm UTC](https://community.dynatrace.com/t/dynatrace-operator-helm-chart-env-variables/35045 "2022-05-04T22:33:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a2](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@a2](https://community.dynatrace.com/u/a2)\
**Post date:** [May 4, 2022, 10:33pm UTC](https://community.dynatrace.com/t/dynatrace-operator-helm-chart-env-variables/35045/1 "2022-05-04T22:33:57Z")

</div>

I have been using terraform helm\_release to deploy the dynatrace operator for quite a while with no issues.&nbsp; I am now trying to add env vars to the oneagent pod but am getting an error about using a string when I try to apply vars.&nbsp; Below is the code and error.&nbsp; This is version 0.4.2.&nbsp; Also, for reference I had no problem passing in:

set {&nbsp; &nbsp; name &nbsp;= “classicFullStack.args”&nbsp; &nbsp; value = “{--set-host-group=${local.eks\_cluster\_name}}”&nbsp; }

Problem code in question: (I have tried this with just “”, [“”], without “”

set {&nbsp; &nbsp; name &nbsp;= “classicFullStack.env”&nbsp; &nbsp; value = “{DT\_DEBUGFLAGS=debugExtensionDSstatsdacceptremotestatsdtraffic=true}”&nbsp; }failed: [DynaKube.dynatrace.com](http://DynaKube.dynatrace.com) “dynakube” is invalid: spec.oneAgent.classicFullStack.env: Invalid value: “string”: spec.oneAgent.classicFullStack.env in body must be of type array: “string”

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [May 5, 2022, 6:23am UTC](https://community.dynatrace.com/t/dynatrace-operator-helm-chart-env-variables/35045/2 "2022-05-05T06:23:31Z")

</div>

Using custom resource to set args could help, something like below.

args: - “--set-host-group=”

Try refreing helm installation and below link.

[Set up Kubernetes monitoring | Dynatrace Docs](https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/kubernetes/set-up-k8s-monitoring#config)
