kubernetes/pkg/controller/garbagecollector
Jordan Liggitt cae56bea0a Replace virtual node with observed node if identity differs
If the graph contains a virtual node (because some child object referenced it in an OwnerRef),
and a real informer event is observed for that uid at different coordinates,
we want to fix the coordinates of the node in the graph to match the actual coordinates.

The safe way to do this is to clone the node, replace the identity in the clone,
then replace the node with the clone.

Modifying the identity directly is not safe because it is accessed lock-free from many code paths.

Replacing the node in the graph from processGraphChanges is safe because it is the only graph writer.
2020-11-17 10:42:48 -05:00
..
config Autogenerated code 2019-10-24 20:21:00 +02:00
metaonly generated 2019-05-24 18:14:53 -07:00
BUILD Switch GC absentOwnerCache to full reference 2020-11-17 10:42:48 -05:00
dump_test.go Fixup gonum.org/v1/gonum/graph API calls 2019-04-08 15:20:46 -04:00
dump.go Fix golint errors in pkg/controller/garbagecollector 2020-02-20 04:46:02 +00:00
errors.go Enable garbage collection of custom resources 2017-07-28 10:00:10 -04:00
garbagecollector_test.go Avoid marking virtual nodes as observed when they haven't been 2020-11-17 10:42:48 -05:00
garbagecollector.go Avoid marking virtual nodes as observed when they haven't been 2020-11-17 10:42:48 -05:00
graph_builder.go Replace virtual node with observed node if identity differs 2020-11-17 10:42:48 -05:00
graph.go Replace virtual node with observed node if identity differs 2020-11-17 10:42:48 -05:00
operations.go switch over k/k to use klog v2 2020-05-16 07:54:27 -04:00
OWNERS Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
patch.go client-go metadata: update callers 2020-03-06 11:07:54 -05:00
uid_cache.go Switch GC absentOwnerCache to full reference 2020-11-17 10:42:48 -05:00