mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-15 17:50:49 +00:00
Update documentation about hooks depreciation
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
This commit is contained in:
parent
56d5da2ce0
commit
e7af8d068f
2 changed files with 33 additions and 0 deletions
|
@ -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 a future release.
|
||||
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.
|
||||
|
|
|
@ -329,6 +329,29 @@ sources:
|
|||
configOpts: [NO_HZ, X86, DMI]
|
||||
```
|
||||
|
||||
### sources.local
|
||||
|
||||
### sources.local.hooksEnabled
|
||||
|
||||
Configuration option to disable/enable hooks execution. Enabled by default.
|
||||
Hooks are DEPRECATED since v0.12.0 release and support will be removed in a
|
||||
future release. Use [feature files](./customization-guide.md#feature-files)
|
||||
instead.
|
||||
|
||||
Related tracking issues:
|
||||
|
||||
1. Config option to disable hooks [#859](https://github.com/kubernetes-sigs/node-feature-discovery/issues/859).
|
||||
1. Disable hook support by default [#855](https://github.com/kubernetes-sigs/node-feature-discovery/issues/855).
|
||||
1. Drop support for hooks [#856](https://github.com/kubernetes-sigs/node-feature-discovery/issues/856).
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
sources:
|
||||
local:
|
||||
hooksEnabled: true # true by default
|
||||
```
|
||||
|
||||
### soures.pci
|
||||
|
||||
#### soures.pci.deviceClassWhitelist
|
||||
|
|
Loading…
Reference in a new issue