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 852cf4b61d source: introduce FeatureSource interface
Specify a new interface for managing "raw" feature data. This is the
first step to separate raw feature data from node labels. None of the
feature sources implement this interface, yet.

This patch unifies the data format of "raw" features by dividing them
into three different basic types.
- keys, a set of names without any associated values, e.g. CPUID flags
  or loaded kernel modules
- values, a map of key-value pairs, for features with a single value,
  e.g. kernel config flags or os version
- instances, a list of instances each of which has multiple attributes
  (key-value pairs of their own), e.g. PCI or USB devices

The new feature data types are defined in a new "pkg/api/feature"
package, catering decoupling and re-usability of code e.g. within future
extentions of the NFD gRPC API.

Rename the Discover() method of LabelSource interface to GetLabels().
2021-09-20 09:58:07 +03:00
..
cpu source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
custom source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
fake source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
internal make golint happy 2021-06-14 12:27:58 -05:00
iommu source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
kernel source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
local source: introduce FeatureSource interface 2021-09-20 09:58:07 +03: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: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
storage source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
system source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
usb source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
config.go Mount /usr/lib and /usr/src inside the Pod 2021-04-26 16:47:37 +02:00
mock_LabelSource.go source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
source.go source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
source_test.go source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00