kubernetes/pkg/controller/garbagecollector
Jordan Liggitt 30eb6683e6 Avoid marking virtual nodes as observed when they haven't been
Virtual nodes can be added to the GC graph in order to represent objects
which have not been observed via an informer, but are referenced via ownerReferences.

These virtual nodes are requeued into attemptToDelete until they are observed via an informer,
or successfully verified absent via a live lookup. Previously, both of those code paths
called markObserved() to stop requeuing into attemptToDelete.

Because it is useful to know whether a particular node has been observed via
a real informer event, this commit does the following:

* adds a `virtual bool` attribute to graph events so we know which ones came from a real informer
* limits the markObserved() call to the code path where a real informer event is observed
* uses an alternative mechanism to stop requeueing into attemptToDelete when a virtual node is verified absent via a live lookup
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 Avoid marking virtual nodes as observed when they haven't been 2020-11-17 10:42:48 -05:00
graph.go Switch GC absentOwnerCache to full reference 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