mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-31 04:04:51 +00:00
Merge pull request #754 from marquiz/documentation/custom-config
docs: use new custom rule format in worker config reference
This commit is contained in:
commit
27ccbcec55
1 changed files with 14 additions and 9 deletions
|
@ -408,20 +408,25 @@ With the example config above NFD would publish labels like:
|
||||||
|
|
||||||
List of rules to process in the custom feature source to create user-specific
|
List of rules to process in the custom feature source to create user-specific
|
||||||
labels. Refer to the documentation of the
|
labels. Refer to the documentation of the
|
||||||
[custom feature source](../get-started/features.html#custom) for details of
|
[custom feature source](customization-guide.html#custom-feature-source) for
|
||||||
the available rules and their configuration.
|
details of the available rules and their configuration.
|
||||||
|
|
||||||
Default: *empty*
|
Default: *empty*
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
source:
|
sources:
|
||||||
custom:
|
custom:
|
||||||
- name: "my.custom.feature"
|
- name: "my custom rule"
|
||||||
matchOn:
|
labels:
|
||||||
- loadedKMod: ["e1000e"]
|
my-custom-feature: "true"
|
||||||
- pciId:
|
matchFeatures:
|
||||||
class: ["0200"]
|
- feature: kernel.loadedmodule
|
||||||
vendor: ["8086"]
|
matchExpressions:
|
||||||
|
e1000e: {op: Exists}
|
||||||
|
- feature: pci.device
|
||||||
|
matchExpressions:
|
||||||
|
class: {op: In, value: ["0200"]}
|
||||||
|
vendor: {op: In, value: ["8086"]}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue