mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
6160e80161
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. |
||
---|---|---|
.. | ||
annotations_labels.go | ||
doc.go | ||
expression.go | ||
expression_test.go | ||
feature.go | ||
generate.sh | ||
generated.pb.go | ||
generated.proto | ||
register.go | ||
rule.go | ||
rule_test.go | ||
types.go | ||
zz_generated.deepcopy.go |