1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-10 18:57:59 +00:00
node-feature-discovery/pkg
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
..
apihelper Replace improper usage of filepath.Join with path.Join 2021-02-10 12:54:31 +02:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
labeler Makefile: add apigen target 2021-07-07 16:01:10 +03:00
nfd-client source: make sources register themselves 2021-09-15 18:41:37 +03:00
nfd-master Merge pull request #548 from marquiz/devel/profile-ns 2021-08-27 07:24:04 -07:00
utils utils/dump: do not print empty header line 2021-06-11 09:29:49 +03:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00