kubernetes/pkg/controller/garbagecollector
Jordan Liggitt ac8d419b4c Enqueue dependents for deletion when their ownerReference does not match observed parent coordinates
When adding a dependent to the graph, we ensure there is a node representing each owner reference,
and add the dependent to each parent node.

If the parent node already exists, and the dependent's ownerReference
coordinates disagree with the verified coordinates, add the dependent to the attemptToDelete queue.

This queue will check the dependent's ownerReferences using the coordinates specified by the dependent.
If all of the owners can be verified absent, the dependent will be deleted.
If some are still present, or if there are errors looking them up, the dependent will not be deleted.

If the parent node has been observed via informer event (so we know the coordinates are accurate),
and the verified owner is namespaced, and the dependent is not in the same namespace,
an event will be recorded for user visibility, since cross-namespace ownerReferences are not supported.
2020-11-17 10:47:39 -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 Short-circuit attemptToDelete loop for virtual nodes that are removed or observed 2020-11-17 10:46:00 -05:00
graph_builder.go Enqueue dependents for deletion when their ownerReference does not match observed parent coordinates 2020-11-17 10:47:39 -05:00
graph.go Enqueue dependents for deletion when their ownerReference does not match observed parent coordinates 2020-11-17 10:47:39 -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