jimmidyson / configmap-reload

Simple binary to trigger a reload when a Kubernetes ConfigMap is updated
Apache License 2.0
986 stars 193 forks source link

How do I listen for multiple subdirectories? #55

Open yzhengwei opened 3 years ago

yzhengwei commented 3 years ago

I mounted multiple ConfigMaps to different directories, and then used configmap-reload to listen to the parent directory. When I update the configmap, configmap-reload cann't found it changes. Do you not support the sub-directory under the directory?How do I listen to multiple directories?

migueleliasweb commented 3 years ago

Having a quick look at the code I would expect the code to just work, but turns out, this is a limitation in fsnotify itself. There's an open issue about this: https://github.com/fsnotify/fsnotify/issues/18