1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 08:17:04 +00:00

Merge pull request #766 from k8s-infra-cherrypick-robot/cherry-pick-754-to-release-0.10

[release-0.10] docs: use new custom rule format in worker config reference
This commit is contained in:
Kubernetes Prow Robot 2022-01-25 10:02:31 -08:00 committed by GitHub
commit d9b4c8f5bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
labels. Refer to the documentation of the
[custom feature source](../get-started/features.html#custom) for details of
the available rules and their configuration.
[custom feature source](customization-guide.html#custom-feature-source) for
details of the available rules and their configuration.
Default: *empty*
Example:
```yaml
source:
sources:
custom:
- name: "my.custom.feature"
matchOn:
- loadedKMod: ["e1000e"]
- pciId:
class: ["0200"]
vendor: ["8086"]
- name: "my custom rule"
labels:
my-custom-feature: "true"
matchFeatures:
- feature: kernel.loadedmodule
matchExpressions:
e1000e: {op: Exists}
- feature: pci.device
matchExpressions:
class: {op: In, value: ["0200"]}
vendor: {op: In, value: ["8086"]}
```