It seems that the influxdb-grafana-controller template already sets some GF_* vars, we just need to alter this template to set some more variables like smtp host, port, sslverify
Could the get-addon-templates script in the cdk-addons alter the influxdb-grafana-controller.yaml to add below into the env section of the pod file based on charm configs before running it in kubernetes?
It seems that the influxdb- grafana- controller template already sets some GF_* vars, we just need to alter this template to set some more variables like smtp host, port, sslverify
https:/ /github. com/kubernetes/ kubernetes/ blob/master/ cluster/ addons/ cluster- monitoring/ influxdb/ influxdb- grafana- controller. yaml#L68
which is pulled from:
https:/ /github. com/juju- solutions/ cdk-addons/ blob/master/ get-addon- templates# L271
Could the get-addon-templates script in the cdk-addons alter the influxdb- grafana- controller. yaml to add below into the env section of the pod file based on charm configs before running it in kubernetes?
GF_SMTP_ ENABLED= true" HOST=smtp. example. com:25 USER=smtpuser PASSWORD= secret SKIP_VERITY= true
GF_SMTP_
<email address hidden>
GF_SMTP_
GF_SMTP_
GF_SMTP_