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 185b406ee7 source/custom: add internal rule api
Add internal API for the nfd-worker custom feature source rule
configuration. This API has already diverged from the NFD
NodeFeatureRule API in that annotations, extended resources or taints
are not supported. This patch basically copies the Rule type (and it's
sub-types) from the nfdv1alpha1 package. It also adds conversion
functions from the internal rule API to the "external" nfdv1alpha1 API.
This is done to use the same rule matching functionality (from the
nfdv1alpha1 package).

One notable remark is that the feature source rule config supports some
custom formatting (short forms, multi-type fields) that relies on
special json/yaml unmarshalling functions that are better to nuke from
the nfdv1alpha1 package (in another patch). These (legacy) syntax
specialities are most probably used by nobody but let's keep them as
they're already there.  Unit tests to cover the custom json
unmarshalling are now added.
2023-12-18 15:19:19 +02:00
..
cpu feat: add cpu socket number in cpu.topology 2023-12-15 11:04:42 +01:00
custom source/custom: add internal rule api 2023-12-18 15:19:19 +02:00
fake pkg/utils: migrate KlogDump to structured logging 2023-05-31 14:43:08 +03:00
kernel pkg/utils: migrate KlogDump to structured logging 2023-05-31 14:43:08 +03:00
local feat: support raw features 2023-10-04 22:37:42 +01:00
memory pkg/utils: migrate KlogDump to structured logging 2023-05-31 14:43:08 +03:00
network docs: add network.virtual in customization guide 2023-11-09 16:44:30 +01:00
pci Use generics for maps and slices 2023-12-13 12:09:53 +02:00
storage pkg/utils: migrate KlogDump to structured logging 2023-05-31 14:43:08 +03:00
system pkg/utils: migrate KlogDump to structured logging 2023-05-31 14:43:08 +03:00
usb Use generics for maps and slices 2023-12-13 12:09:53 +02:00
mock_LabelSource.go generate: bump tools to their latest versions 2023-07-27 14:29:48 +03:00
source.go source: migrate to structured logging 2023-05-31 14:43:08 +03:00
source_test.go pkg/api/feature: rename types 2022-10-06 11:25:01 +03:00