1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-31 04:04:51 +00:00
node-feature-discovery/pkg
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
..
apihelper apis/nfd: update auto-generated code 2022-10-18 18:41:53 +03:00
apis/nfd/v1alpha1 apis/nfd: fix NodeFeatureRule templating 2022-10-25 23:37:27 +03:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
generated Update auto-generated artefacts 2022-09-08 12:45:20 +03:00
kubeconf Drop deprecated io/ioutil package 2022-09-08 14:26:02 +03:00
labeler apis/nfd: update auto-generated code 2022-10-18 18:41:53 +03:00
nfd-client Merge pull request #925 from marquiz/devel/feature-api-flatten 2022-10-24 01:14:26 -07:00
nfd-master apis/nfd: flatten the structure of features data type 2022-10-18 18:37:28 +03:00
podres topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
resourcemonitor Standardize "k8s.io/api/core/v1" package short name 2022-10-15 02:22:41 +03:00
topologypolicy topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
topologyupdater Re-generate files 2022-08-10 09:47:23 +03:00
utils Standardize "k8s.io/api/core/v1" package short name 2022-10-15 02:22:41 +03:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00