1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

deployment: use new rule format in sample custom rule overlay

This commit is contained in:
Markus Lehtonen 2021-12-13 14:09:07 +02:00
parent 09c1ff86ca
commit 468fa2b817

View file

@ -1,7 +1,15 @@
#- name: "more.kernel.features"
# matchOn:
# - loadedKMod: ["example_kmod3"]
#- name: "more.features.by.nodename"
# value: customValue
# matchOn:
# - nodename: ["special-.*-node-.*"]
- name: "kernel module rule"
labels:
"kernel-br_netfilter.present": "true"
matchFeatures:
- feature: "kernel.loadedmodule"
matchExpressions:
br_netfilter: {op: Exists}
- name: "nodename rule"
labels:
"nodename-rule.matches": "true"
matchFeatures:
- feature: "system.name"
matchExpressions:
nodename: {op: InRegexp, value: ["special-.*-node"]}