1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/source
Markus Lehtonen 999628418b source/storage: implement FeatureSource
Separate feature discovery and creation of feature labels. Generalize
the feature discovery so that block devices can be matched in custom
label rules in a similar fashion as pci and usb devices. This extends
the discovery to other block queue attributes than 'rotational': now we
also detect 'dax', 'nr_zones' and 'zoned'.

Labels created by the storage feature source are unchanged. The new
features being detected are available in custom rules only.

Example custom rules:

  - name: "my block rule 1"
    labels:
      my-block-feature-1: "true"
    matchFeatures:
      - feature: storage.block
          "rotational": {op: In, value: ["0"]}

  - name: "my block rule 2"
    labels:
      my-block-feature-2: "true"
    matchFeatures:
      - feature: storage.block
          "zoned": {op: In, value: [“host-aware”, “host-managed”]}

Also, add minimalist unit test.
2021-11-18 14:58:33 +02:00
..
cpu source/cpu: implement FeatureSource 2021-11-11 18:33:40 +02:00
custom source/custom: move rule matching to pkg/apis/nfd 2021-11-17 14:02:00 +02:00
fake source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
iommu source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
kernel source/custom: move kernel module detection to source/kernel 2021-11-11 18:33:58 +02:00
local source/local: implement FeatureSource 2021-11-11 18:34:01 +02:00
memory source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
network source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
pci source/pci: implement FeatureSource 2021-11-11 18:33:53 +02:00
storage source/storage: implement FeatureSource 2021-11-18 14:58:33 +02:00
system source/system: implement FeatureSource 2021-11-11 18:33:58 +02:00
usb source/usb: implement FeatureSource 2021-11-11 18:33:53 +02:00
config.go topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
mock_LabelSource.go Merge pull request #602 from marquiz/devel/go-generate 2021-09-21 06:16:24 -07:00
source.go Merge pull request #602 from marquiz/devel/go-generate 2021-09-21 06:16:24 -07:00
source_test.go source/kernel: implement FeatureSource 2021-11-11 18:33:40 +02:00