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/apihelper
Markus Lehtonen 95ff300d74 nfd-master: patch node object instead of rewriting it
When updating node labels and annotations use JSON patches instead of
doing a read-modify-write on the whole node object. Patching is already
being used in managing extended resources so some of the existing code
was re-usable.

This patch should mitigate the problem of node update failures caused by
race conditions (a change in the node object between our read and write)
resulting e.g. in errors/restarts in nfd worker pods.
2020-11-24 12:45:06 +02:00
..
apihelpers.go nfd-master: patch node object instead of rewriting it 2020-11-24 12:45:06 +02:00
jsonpatch.go nfd-master: change statusOp to a more generalized JSON patch 2020-11-24 12:45:06 +02:00
k8shelpers.go nfd-master: patch node object instead of rewriting it 2020-11-24 12:45:06 +02:00
mock_APIHelpers.go nfd-master: patch node object instead of rewriting it 2020-11-24 12:45:06 +02:00