influxdata / helm-charts

Official Helm Chart Repository for InfluxData Applications
MIT License
233 stars 330 forks source link

telegraf: disable generation and use of configmap entirely (in favor of mounting a secret via volumes + mountpoints)? #606

Open ojkastl opened 1 year ago

ojkastl commented 1 year ago

I am struggling to get my telegraf setup working. I have a Kubernetes secret that contains a valid telegraf configuration (not a configMap, as there are sensitive values like username/passwords and such).

I can mount this secret to /etc/telegraf.conf.d/something.conf (using the volumes and mountpoints in the values.yaml). But then the default configuration file (created from the values.yaml config option) still sets up things I do not need.

I got rid of most of it by using empty keys (e.g. outputs: {}), but is there a nice way to disable the config YAML-to-TOML conversion part?