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 81378a3235 source: make sources register themselves
Implement new registration infrastructure under the "source" package.
This change loosens the coupling between label sources and the
nfd-worker, making it easier to refactor and move the code around.

Also, create a separate interface (ConfigurableSource) for configurable
feature sources in order to eliminate boilerplate code.

Add safety checks to the sources that they actually implement the
interfaces they should.

In sake of consistency and predictability (of behavior) change all
methods of the sources to use pointer receivers.

Add simple unit tests for the new functionality and include source/...
into make test target.
2021-09-15 18:41:37 +03:00
..
cpu source: make sources register themselves 2021-09-15 18:41:37 +03:00
custom source: make sources register themselves 2021-09-15 18:41:37 +03:00
fake source: make sources register themselves 2021-09-15 18:41:37 +03:00
internal make golint happy 2021-06-14 12:27:58 -05:00
iommu source: make sources register themselves 2021-09-15 18:41:37 +03:00
kernel source: make sources register themselves 2021-09-15 18:41:37 +03:00
local source: make sources register themselves 2021-09-15 18:41:37 +03:00
memory source: make sources register themselves 2021-09-15 18:41:37 +03:00
network source: make sources register themselves 2021-09-15 18:41:37 +03:00
pci source: make sources register themselves 2021-09-15 18:41:37 +03:00
storage source: make sources register themselves 2021-09-15 18:41:37 +03:00
system source: make sources register themselves 2021-09-15 18:41:37 +03:00
usb source: make sources register themselves 2021-09-15 18:41:37 +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: make sources register themselves 2021-09-15 18:41:37 +03:00
source.go source: make sources register themselves 2021-09-15 18:41:37 +03:00
source_test.go source: make sources register themselves 2021-09-15 18:41:37 +03:00