kubernetes/test
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
..
e2e tests 2017-02-28 23:05:41 -08:00
e2e_federation [Federation] Remove federat{ed,ion} prefixes from e2e file names since they are all now scoped under the e2e_federation package. 2017-02-28 12:37:49 -08:00
e2e_node Merge pull request #36828 from mtaufen/eviction-test-thresholds 2017-02-28 21:17:05 -08:00
fixtures Add a unit test for applies and idempotent applys to the TPR entries. 2017-02-27 10:22:12 -08:00
images Bump golang versions to 1.7.5 2017-02-21 13:02:16 -08:00
integration Merge pull request #38676 from caesarxuchao/sync-gc 2017-03-01 01:44:02 -08:00
kubemark Merge pull request #41973 from wojtek-t/build_non_alpha_3_0_17_etcd_image 2017-02-28 22:05:59 -08:00
list Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
soak move util/intstr to apimachinery 2017-01-30 12:46:59 -05:00
utils Add randomized load test 2017-02-21 16:31:21 +01:00
BUILD auto-generated bazel BUILD file changes 2017-01-19 08:00:52 +05:30
OWNERS Add ncdc to test/OWNERS 2017-02-25 14:08:59 -05:00
test_owners.csv Update tests listed in test/test_owners.py 2017-02-21 14:48:34 -08:00