mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
9523f1e411
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. |
||
---|---|---|
.. | ||
apihelper | ||
apis/nfd/v1alpha1 | ||
cpuid | ||
generated | ||
labeler | ||
nfd-master | ||
nfd-topology-gc | ||
nfd-topology-updater | ||
nfd-worker | ||
podres | ||
resourcemonitor | ||
topologypolicy | ||
utils | ||
version |