1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 08:17:04 +00:00
node-feature-discovery/source
Markus Lehtonen a2b9df5cd3 nfd-worker: rework configuration handling
Extend the FeatureSource interface with new methods for configuration
handling. This enables easier on-the fly reconfiguration of the
feature sources. Further, it simplifies adding config support to feature
sources in the future. Stub methods are added to sources that do not
currently have any configurability.

The patch fixes some (corner) cases with the overrides (--options)
handling, too:
- Overrides were not applied if config file was missing or its parsing
  failed
- Overrides for a certain source did not have effect if an empty config
  for the source was specified in the config file. This was caused by
  the first pass of parsing (config file) setting a nil pointer to the
  source-specific config, effectively detaching it from the main config.
  The second pass would then create a new instance of the source
  specific config, but, this was not visible in the feature source, of
  course.
2020-05-21 00:59:37 +03:00
..
cpu nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
custom nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
fake nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
internal source: perform all sysfs discovery under host sysfs 2020-05-20 22:15:41 +03:00
iommu nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
kernel nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
local nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
memory nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
network nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
panic_fake nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
pci nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
storage nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
system nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
usb nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
config.go source: parametrise host directory paths 2020-05-20 22:15:41 +03:00
mock_FeatureSource.go nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00
source.go nfd-worker: rework configuration handling 2020-05-21 00:59:37 +03:00