Skip to content

Commit

Permalink
Update documentation about hooks depreciation
Browse files Browse the repository at this point in the history
Signed-off-by: Feruzjon Muyassarov <[email protected]>
  • Loading branch information
fmuyassarov committed Aug 23, 2022
1 parent 8979039 commit 8d4cc18
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/advanced/customization-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ should be placed in a separate directory in order to avoid NFD unnecessarily
trying to execute them. A subdirectory under the hooks directory can be used,
for example `/etc/kubernetes/node-feature-discovery/source.d/conf/`.

**NOTE:** Hooks are being DEPRECATED and will be removed in the future releases.
For backward compatibility, currently hooks are enabled by default and can be
disabled via `sources.local.hooksEnabled` field in the worker configuration.

```yaml
sources:
local:
hooksEnabled: true # true by default at this point
```

**NOTE:** NFD will blindly run any executables placed/mounted in the hooks
directory. It is the user's responsibility to review the hooks for e.g.
possible security implications.
Expand Down

0 comments on commit 8d4cc18

Please sign in to comment.