kubernetes/pkg/controller/garbagecollector
Jordan Liggitt 445f20dbdb Switch GC absentOwnerCache to full reference
Before deleting an object based on absent owners, GC verifies absence of those owners with a live lookup.

The coordinates used to perform that live lookup are the ones specified in the ownerReference of the child.

In order to performantly delete multiple children from the same parent (e.g. 1000 pods from a replicaset),
a 404 response to a lookup is cached in absentOwnerCache.

Previously, the cache was a simple uid set. However, since children can disagree on the coordinates
that should be used to look up a given uid, the cache should record the exact coordinates verified absent.
This is a [apiVersion, kind, namespace, name, uid] tuple.
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 Switch GC absentOwnerCache to full reference 2020-11-17 10:42:48 -05:00
garbagecollector.go Switch GC absentOwnerCache to full reference 2020-11-17 10:42:48 -05:00
graph_builder.go Switch GC absentOwnerCache to full reference 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