1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00
node-feature-discovery/pkg/nfd-worker
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
..
nfd-worker-internal_test.go nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
nfd-worker.go nfd-worker: use fsnotify for watching for config file changes 2021-02-10 22:09:27 +02:00
nfd-worker_test.go nfd-master: fix --label-whitelist 2019-05-08 23:07:52 +03:00