mirror of
https://github.com/wahyd4/telegraf.git
synced 2026-08-09 12:46:06 +10:00
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.