1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 10:47:23 +00:00
node-feature-discovery/pkg
Markus Lehtonen b2d9e15a00 apis/nfd: drop the private template caching fields
Drop the private fields – that were supposed to be used for caching parsed
templates – from the Rule type. Keep the API typedefs cleaner and
simpler. Moreover, the caching was not even used in practice,
effectively complicating code without any benefit: the way the types
are used in nfd-master creates a local copy of Rule type storing the
cached template in the copy, wasting it from any future users.

There are also other possible caveats in caching like we tried to do it.
For example the objects returned by the api lister are supposed to be
treated as read-only - in particular if we would be to modify them there
should at least be proper locking in place as nfd-master potentially
processes the same rule (the same Go object) in parallel for multiple
nodes. If any optimization like this will be pursued it should be done
properly, probably with private type(s) at the consumer's end, not
contaminating the API types.
2023-12-15 10:48:07 +02:00
..
apihelper generate: bump tools to their latest versions 2023-07-27 14:29:48 +03:00
apis/nfd apis/nfd: drop the private template caching fields 2023-12-15 10:48:07 +02:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
generated generate: update kube code-gen to v1.28.4 2023-11-29 18:37:19 +02:00
labeler generate: bump tools to their latest versions 2023-07-27 14:29:48 +03:00
nfd-gc nfd-gc: add metrics 2023-10-09 13:39:28 +00:00
nfd-master Use generics for maps and slices 2023-12-13 12:09:53 +02:00
nfd-topology-updater Refactor metrics 2023-10-09 10:49:12 +03:00
nfd-worker Use generics for maps and slices 2023-12-13 12:09:53 +02:00
podres generate: bump tools to their latest versions 2023-07-27 14:29:48 +03:00
resourcemonitor topology-updater: migrate to structured logging 2023-05-31 14:43:08 +03:00
topologypolicy nrt-api: move from v1alpha1 to v1alpha2 2023-02-09 12:29:54 +01:00
utils Use generics for maps and slices 2023-12-13 12:09:53 +02:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00