1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 10:47:23 +00:00

README: note on avoiding a race condition with hooks

This commit is contained in:
Markus Lehtonen 2020-02-11 14:31:10 +02:00
parent 5f781aa72c
commit 66bf544ac5

View file

@ -418,6 +418,12 @@ example `/etc/kubernetes/node-feature-discovery/source.d/conf/`.
directory. It is the user's responsibility to review the hooks for e.g.
possible security implications.
**NOTE!** Be careful when creating and/or updating hook or feature files while
NFD is running. In order to avoid race conditions you should write into a
temporary file (outside the `source.d` and `features.d` directories), and,
atomically create/update the original file by doing a filesystem move
operation.
## Getting started
For a stable version with ready-built images see the