1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 10:47:23 +00:00
node-feature-discovery/pkg
Markus Lehtonen b6ff514853 nfd-worker: use fsnotify for watching for config file changes
Add support for detecting configuration file changes via file system
notifications (fsnotify). Watches are added for the whole directory
chain (up to root directory) so that all changes (even directory
renames) affecting the given configuration file path are captured.

Previously dynamic (re-)configuration of nfd-worker was implemented by
(re-)reading the configuration file on every labeling pass. This was
simple and effective, even if a bit wasteful. However, it didn't provide
asynchronous configuration updates that will be required for e.g.
controlling the "sleep-interval" parameter dynamically which will be
implemented by later patches.
2021-02-10 22:09:27 +02:00
..
apihelper Replace improper usage of filepath.Join with path.Join 2021-02-10 12:54:31 +02:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
labeler nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
nfd-master Replace improper usage of filepath.Join with path.Join 2021-02-10 12:54:31 +02:00
nfd-worker nfd-worker: use fsnotify for watching for config file changes 2021-02-10 22:09:27 +02:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00