@@ -193,10 +193,10 @@ extensions, allowing the creation of new user-specific features and even
193
193
overriding built-in labels.
194
194
195
195
The `local` feature source has two methods for detecting features, feature
196
- files and hooks (deprecated). The features discovered by the `local` source can
197
- further be used in label rules specified in
198
- [`NodeFeatureRule`](#nodefeaturerule-custom-resource) objects and the
199
- [`custom`](#custom-feature-source) feature source.
196
+ files and hooks (hooks are deprecated and slated for removal in NFD v0.17). The
197
+ features discovered by the `local` source can further be used in label rules
198
+ specified in [`NodeFeatureRule`](#nodefeaturerule-custom-resource) objects and
199
+ the [`custom`](#custom-feature-source) feature source.
200
200
201
201
> **NOTE:** Be careful when creating and/or updating hook or feature files
202
202
> while NFD is running. To avoid race conditions you should write
@@ -236,7 +236,10 @@ and translated into node labels, see the [input format below](#input-format).
236
236
237
237
# ## Hooks
238
238
239
- **DEPRECATED** The `local` source executes hooks found in
239
+ **DEPRECATED** Hooks are deprecated and will be completely removed in NFD
240
+ v0.17.
241
+
242
+ The `local` source executes hooks found in
240
243
` /etc/kubernetes/node-feature-discovery/source.d/` . The hook files must be
241
244
executable and they are supposed to print all discovered features in `stdout`.
242
245
Since NFD v0.13 the default container image only supports statically linked ELF
@@ -251,9 +254,9 @@ should be placed in a separate directory to avoid NFD unnecessarily
251
254
trying to execute them. A subdirectory under the hooks directory can be used,
252
255
for example `/etc/kubernetes/node-feature-discovery/source.d/conf/`.
253
256
254
- > **NOTE:** Hooks are being DEPRECATED and will be removed in a future release.
255
- > Starting from release v0.14 hooks are disabled by default and can be enabled
256
- > via `sources.local.hooksEnabled` field in the worker configuration.
257
+ > **NOTE:** Starting from release v0.14 hooks are disabled by default and can
258
+ > be enabled via `sources.local.hooksEnabled` field in the worker
259
+ > configuration.
257
260
258
261
` ` ` yaml
259
262
sources:
0 commit comments