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:
parent
5f781aa72c
commit
66bf544ac5
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue