How to specify environment variables in Vault config with Helm?

The Vault Helm chart let’s you specify vault config, which will be stored in a ConfigMap https://github.com/hashicorp/vault-helm/blob/ee4e532159b023dece6d69ec58666cd50d85a47b/values.yaml#L436

I would like to use an environment variable in a stanza here. In particular, I want to report telemetry to statsd with the following config
telemetry {
statsd_address = “:8125”
}
This assumes a statd listener is running as a DaemonSet on the cluster and is in the HostNetwork. The nodeIP can be retrieved using the Kubernetes downward API (https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/)

An example of this process can be seen here (https://www.datadoghq.com/blog/monitor-kubernetes-docker/#pass-the-nodes-ip-address-to-your-app)

How can I use an environment variable here, or have K8s template out status.hostIP for each pod?

This is resolved. Looks like the Vault Helm chart will sed replace certain envs in config. More info here https://github.com/hashicorp/vault-helm/blob/994797cff4dc12887acc9fc7fccb70d34f3254b9/templates/_helpers.tpl#L127