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/pkg
Markus Lehtonen 9523f1e411 nfd-master: fix a crash when processing NodeFeatureRules
Fix a a bug where nfd-master with NodeFeature API enabled would crash
when NodeFeatureRule objects were processed in the case where no
NodeFeature objects existed. This was caused by trying to insert values
into a non-initialized NodeFeatureSpec in the code.

This patch adds two safety measures to prevent that from happening in
the future. First, add a constructor function for the NodeFeatureSpec
type, and second, check for uninitialized object in the function
inserting new functions.

TODO: add unit tests for the API helper functions.
2023-04-21 19:24:08 +03:00
..
apihelper generate: update mockery to v2.25.1 2023-04-19 13:33:42 +03:00
apis/nfd/v1alpha1 nfd-master: fix a crash when processing NodeFeatureRules 2023-04-21 19:24:08 +03:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
generated generate: update auto-generated code 2023-04-19 09:49:17 +03:00
labeler generate: update mockery to v2.25.1 2023-04-19 13:33:42 +03:00
nfd-master nfd-master: fix a crash when processing NodeFeatureRules 2023-04-21 19:24:08 +03:00
nfd-topology-gc nrt-api: move from v1alpha1 to v1alpha2 2023-02-09 12:29:54 +01:00
nfd-topology-updater reactive updates: add an option to disable the feature 2023-03-16 11:53:16 +02:00
nfd-worker Merge pull request #1084 from AhmedGrati/feat-add-master-config-file 2023-04-04 10:41:40 -07:00
podres generate: update mockery to v2.25.1 2023-04-19 13:33:42 +03:00
resourcemonitor pkg/podres: update mocked PodResourcesListerClient 2023-04-18 20:51:51 +03:00
topologypolicy nrt-api: move from v1alpha1 to v1alpha2 2023-02-09 12:29:54 +01:00
utils Merge pull request #1086 from AhmedGrati/feat-support-builtin-kernel-mods 2023-04-13 10:30:40 -07:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00