kubernetes/pkg/controller
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
..
apis/config Merge pull request #96399 from andrewsykim/service-config 2020-11-12 11:21:57 -08:00
bootstrap Run hack/update-vendor.sh 2020-05-16 07:54:33 -04:00
certificates abort if namespace doesn't exist or terminating 2020-11-05 11:12:15 -08:00
clusterroleaggregation Run hack/update-vendor.sh 2020-05-16 07:54:33 -04:00
cronjob update bazel 2020-11-11 19:47:11 -05:00
daemon Merge pull request #89482 from renatoviana12/master 2020-10-05 20:00:19 -07:00
deployment Merge pull request #89482 from renatoviana12/master 2020-10-05 20:00:19 -07:00
disruption Fixed percentage behavior in instr 2020-09-30 21:23:05 +01:00
endpoint Graduating AppProtocol to GA 2020-11-09 11:08:19 -08:00
endpointslice Updates related to PR feedback 2020-11-12 12:30:50 -08:00
endpointslicemirroring Updating EndpointSlice controllers to support NodeName field 2020-11-11 16:50:36 -08:00
garbagecollector Enqueue dependents for deletion when their ownerReference does not match observed parent coordinates 2020-11-17 10:47:39 -05:00
history automated refactor 2020-03-05 14:59:46 -08:00
job Number of failed jobs should exceed the backoff limit and not big equal. 2020-08-11 11:06:09 +03:00
namespace Fix namespace controller cleanup orphaning 2020-08-07 13:26:28 -04:00
nodeipam Add providerless tags 2020-07-30 13:48:40 -04:00
nodelifecycle Use topology labels instead of old beta names (#96033) 2020-11-05 20:26:50 -08:00
podautoscaler Fix static checks for pkg/controller/podautoscaler 2020-10-23 18:53:07 +00:00
podgc code clean for podgc 2020-07-04 23:01:16 +08:00
replicaset test: ensure WaitForCacheSync is called after starting sharedInformerFacotry 2020-09-15 16:02:35 +08:00
replication Run update-bazel.sh 2020-06-22 10:49:15 +09:00
resourcequota Move informer_factory to staging 2020-10-29 12:20:33 -07:00
serviceaccount Move client_builder to k8s.io/controller-manager 2020-10-19 14:48:22 -07:00
statefulset Remove redundant variable 2020-10-16 09:53:34 +09:00
storageversiongc fixup! add storage version garbage collector 2020-11-12 16:34:27 -08:00
testutil Run hack/update-vendor.sh 2020-05-16 07:54:33 -04:00
ttl Lint ttl_controller 2020-09-28 14:22:37 +02:00
ttlafterfinished Replace StartLogging(klog.Infof) with StartStructuredLogging(0) 2020-06-15 17:48:35 +09:00
util endpointslice controller: set new conditions 'accepting' and 'terminating' 2020-11-05 19:18:45 -05:00
volume plumb service account token down to csi driver 2020-11-12 09:26:43 -08:00
BUILD generated 2020-11-12 16:25:22 -08:00
client_builder_dynamic.go Move client_builder to k8s.io/controller-manager 2020-10-19 14:48:22 -07:00
controller_ref_manager_test.go remove unused code of (pkg/controller) 2018-10-09 08:15:30 +08:00
controller_ref_manager.go switch over k/k to use klog v2 2020-05-16 07:54:27 -04:00
controller_utils_test.go Do not swallow NotFound error for DeletePod in dsc.manage 2020-06-04 16:41:38 +08:00
controller_utils.go Migrate to log calls to klog.InfoS and klog.ErroS for pkg/controller 2020-06-05 13:23:01 +08:00
doc.go
lookup_cache.go
OWNERS Adding cheftako to pkg/controller/OWNERS 2020-07-09 16:10:59 -07:00