k3s/pkg/api/rest
Kubernetes Submit Queue f297ea966e Merge pull request #30838 from caesarxuchao/per-resource-orphan-behavior
Automatic merge from submit-queue

[GarbageCollector] Allow per-resource default garbage collection behavior

What's the bug:
When deleting an RC with `deleteOptions.OrphanDependents==nil`, garbage collector is supposed to treat it as `deleteOptions.OrphanDependents==true", and orphan the pods created by it. But the apiserver is not doing that.

What's in the pr:
Allow each resource to specify the default garbage collection behavior in the registry. For example, RC registry's default GC behavior is Orphan, and Pod registry's default GC behavior is CascadingDeletion.
2016-08-23 08:46:32 -07:00
..
resttest ignore clusterName on create and update 2016-08-22 21:09:57 -07:00
create.go ignore clusterName on create and update 2016-08-22 21:09:57 -07:00
delete.go Allow per-resource default garbage collection behavior 2016-08-22 11:37:04 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
export.go Plumb context to strategy methods 2016-08-08 22:33:25 -04:00
rest.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
types.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
update.go ignore clusterName on create and update 2016-08-22 21:09:57 -07:00