k3s/test/integration
Kubernetes Submit Queue 3afefae02a Merge pull request #38676 from caesarxuchao/sync-gc
Automatic merge from submit-queue (batch tested with PRs 38676, 41765, 42103, 41833, 41702)

Add synchronous garbage collection

Fix https://github.com/kubernetes/kubernetes/issues/29891.

Split into five commits:
1. generated: don't need review
2. API: got reviewed in #38678, i addressed @lavalamp's comments there.
3. registry changes: @nikhiljindal could you help take a look?
4. gc changes: reviewed by @deads2k in #38679. It needs another pass.
5. tests: @lavalamp @deads2k could take a look?

TODO:
- [ ] Update doc. Note that the existing doc has been refactored in https://github.com/kubernetes/kubernetes.github.io/pull/2488.
- [ ] add an admission controller to check if a user can set OwnerReference.BlockOwnerDeletion
- [ ] https://github.com/kubernetes/kubernetes/pull/38676#discussion_r103277274
- [ ] split the unit tests garbagecollector_test.go according to the components tested.
- [ ] try if it's practically safe to use the cached object status in attempToDeleteItem(), after synchronous GC feature is stable. (Also see https://github.com/kubernetes/kubernetes/pull/38676#discussion_r103056971)
- [ ] add blockOwnerDeletion for rs adoption https://github.com/kubernetes/kubernetes/pull/38679#discussion_r93817284
- [ ] https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/38676/pull-kubernetes-e2e-gce-etcd3/20101/ (improve the log message)

```release-note
Added foreground garbage collection: the owner object will not be deleted until all its dependents are deleted by the garbage collector. Please checkout the [user doc](https://kubernetes.io/docs/concepts/abstractions/controllers/garbage-collection/) for details.
deleteOptions.orphanDependents is going to be deprecated in 1.7. Please use deleteOptions.propagationPolicy instead.
```
2017-03-01 01:44:02 -08:00
..
apiserver Adding an integration test for testing 202 status code from apiserver 2017-02-23 16:28:10 -08:00
auth Switch RBAC subject apiVersion to apiGroup in v1beta1 2017-02-13 15:33:09 -05:00
client Switch watch prefixes to params 2017-02-22 08:54:08 -05:00
configmap find and replace 2017-01-20 08:04:53 -05:00
evictions react to informer updates 2017-02-13 09:18:32 -05:00
examples allow incluster authentication info lookup 2017-02-28 13:29:59 -05:00
federation [Federation] Register autoscaling apis to federation api server 2017-01-22 12:27:56 +05:30
framework Revert "Merge pull request #40088 from jsafrane/storage-ga-v1" 2017-02-25 22:35:15 -05:00
garbagecollector tests 2017-02-28 23:05:41 -08:00
kubectl mechanical 2017-01-23 10:03:55 -05:00
master Removed HPA objects from extensions api group 2017-02-02 14:09:54 +01:00
metrics refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
objectmeta find and replace 2017-01-20 08:04:53 -05:00
openshift Update generated files 2017-02-03 08:15:46 +01:00
pods find and replace 2017-01-20 08:04:53 -05:00
quota Enable Garbage collection by default for RS and RC 2017-02-23 22:37:52 -08:00
replicaset tests 2017-02-28 23:05:41 -08:00
replicationcontroller tests 2017-02-28 23:05:41 -08:00
scheduler Add support for statefulset spreading to the scheduler 2017-02-27 18:04:08 -08:00
scheduler_perf Add support for statefulset spreading to the scheduler 2017-02-27 18:04:08 -08:00
secrets find and replace 2017-01-20 08:04:53 -05:00
serviceaccount Switch admission to use shared informers 2017-02-23 11:16:09 -05:00
storageclasses Revert "Merge pull request #40088 from jsafrane/storage-ga-v1" 2017-02-25 22:35:15 -05:00
thirdparty find and replace 2017-01-20 08:04:53 -05:00
ttlcontroller react to informer updates 2017-02-13 09:18:32 -05:00
volume Revert "Merge pull request #40088 from jsafrane/storage-ga-v1" 2017-02-25 22:35:15 -05:00
BUILD remove example apiserver replaced by sample and test/integration/examples 2017-02-27 07:47:19 -05:00
benchmark-controller.json
doc.go
utils.go mechanical 2017-01-16 09:35:12 -05:00