1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-06 00:37:01 +00:00
node-feature-discovery/pkg/apis/nfd/v1alpha1
Markus Lehtonen 7c24b50f74 apis/nfd: fix NodeFeatureRule templating
Fix handling of templates that got broken in
b907d07d7e when "flattening" the internal
data structure of features. That happened because the golang
text/template format uses dots to reference fields of a struct /
elements of a map (i.e. 'foo.bar' means that 'bar' must be a sub-element
of foo). Thus, using dots in our feature names (e.g. 'cpu.cpuid') means
that that hierarchy must be reflected in the data structure that is fed
to the templating engine. Thus, for templates we're now stuck stuck with
two level hierarchy. It doesn't really matter for now as all our
features follow that naming patter. We might be able to overcome this
limitation e.g.  by using reflect but that's left as a future exercise.
2022-10-25 23:37:27 +03:00
..
annotations_labels.go apis/nfd: move annotation and label consts from nfd-master 2022-10-06 11:23:56 +03:00
doc.go apis/nfd: migrate pkg/api/feature 2022-10-15 07:42:20 +03:00
expression.go apis/nfd: migrate pkg/api/feature 2022-10-15 07:42:20 +03:00
expression_test.go apis/nfd: migrate pkg/api/feature 2022-10-15 07:42:20 +03:00
feature.go apis/nfd: flatten the structure of features data type 2022-10-18 18:37:28 +03:00
generate.sh apis/nfd: migrate pkg/api/feature 2022-10-15 07:42:20 +03:00
generated.pb.go apis/nfd: update auto-generated code 2022-10-18 18:41:53 +03:00
generated.proto apis/nfd: update auto-generated code 2022-10-18 18:41:53 +03:00
register.go pkg/apis/nfd/v1alpha1: document exported symbols 2021-12-01 10:46:56 +02:00
rule.go apis/nfd: fix NodeFeatureRule templating 2022-10-25 23:37:27 +03:00
rule_test.go apis/nfd: fix NodeFeatureRule templating 2022-10-25 23:37:27 +03:00
types.go apis/nfd: flatten the structure of features data type 2022-10-18 18:37:28 +03:00
zz_generated.deepcopy.go apis/nfd: update auto-generated code 2022-10-18 18:41:53 +03:00