k3s/pkg/controller/garbagecollector
Kubernetes Submit Queue ccb9590a3b
Merge pull request #63386 from roycaihw/gc-json-patch
Automatic merge from submit-queue (batch tested with PRs 63386, 64624, 62297, 64847). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Let the garbage collector use json merge patch when SMP is not supported

**What this PR does / why we need it**:
Let garbage collector fallback to use json merge patch when strategic merge patch returns 415. This enables orphan delete on custom resources. 

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #56348

**Special notes for your reviewer**:
This PR is developed based on https://github.com/kubernetes/kubernetes/pull/56595. Ref https://github.com/kubernetes/kubernetes/pull/56606 for more information. 

**Release note**:

```release-note
Orphan delete is now supported for custom resources
```

/sig api-machinery
2018-06-06 19:56:20 -07:00
..
metaonly remove unused gc code 2018-05-21 20:22:37 +08:00
BUILD update garbage collection to use the new dynamic client 2018-05-07 09:01:39 -04:00
OWNERS add approvers to pkg/controller/garbagecollector 2017-07-13 15:16:17 -07:00
errors.go Enable garbage collection of custom resources 2017-07-28 10:00:10 -04:00
garbagecollector.go Merge pull request #63386 from roycaihw/gc-json-patch 2018-06-06 19:56:20 -07:00
garbagecollector_test.go Merge pull request #63386 from roycaihw/gc-json-patch 2018-06-06 19:56:20 -07:00
graph.go Requeue unobserved nodes in attemptToDelete 2017-12-21 14:00:07 -05:00
graph_builder.go Merge pull request #63386 from roycaihw/gc-json-patch 2018-06-06 19:56:20 -07:00
operations.go GC fallback to jsonmerge patch when SMP is not supported 2018-06-01 16:50:07 -07:00
patch.go GC fallback to jsonmerge patch when SMP is not supported 2018-06-01 16:50:07 -07:00
uid_cache.go start the apimachinery repo 2017-01-11 09:09:48 -05:00