When config dir is mounted from configmap, filepath.Walk() finds the same .conf file twice as 20-acme.conf is a link to ..data/20-acme.conf for example. This patch skips all folder names starting with '..' which is pretty uncommon and mainly used by Kubernetes mounts. |
||
|---|---|---|
| .. | ||
| subconfig | ||
| single_plugin.toml | ||
| single_plugin_env_vars.toml | ||
| telegraf-agent.toml | ||