kubernetes/pkg/controller/garbagecollector
Manu Gupta 79a51090f9
fix: 81134: fix unsafe json for ReleaseControllerRevision (#104049)
* fix: 81134: fix unsafe json for ReleaseControllerRevision

1. Ensures that ReleaseControllerRevision returns a proper json by
marshalling an object into bytes. Otherwise, it returns an error.

2. Also, refactors the code to commonize the merge type
   GenerateDeleteOwnerRefStrategicMergeBytes that returns a byte and is
   used across ReleasePod, ReleaseControllerRevison
   ReleaseReplicaSet.

* Move GeneratePatchBytesForDelete to controller_ref_manager
2021-11-05 06:33:52 -07:00
..
config generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
metaonly generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
dump_test.go Fixup gonum.org/v1/gonum/graph API calls 2019-04-08 15:20:46 -04:00
dump.go use common controller interface in KCM. 2021-08-25 13:29:03 -07:00
errors.go Enable garbage collection of custom resources 2017-07-28 10:00:10 -04:00
garbagecollector_test.go fix: 81134: fix unsafe json for ReleaseControllerRevision (#104049) 2021-11-05 06:33:52 -07:00
garbagecollector.go fix: 81134: fix unsafe json for ReleaseControllerRevision (#104049) 2021-11-05 06:33:52 -07:00
graph_builder_test.go Add GC unit tests 2020-11-17 10:49:32 -05:00
graph_builder.go Clean up namespaced children of missing virtual parents with incorrectly cluster-scoped nodes 2021-01-14 11:29:31 -05:00
graph.go Enqueue dependents for deletion when their ownerReference does not match observed parent coordinates 2020-11-17 10:47:39 -05:00
operations.go Log cluster-scoped owners referencing namespaced owners, avoid retrying lookups forever 2020-11-17 10:49:30 -05:00
OWNERS Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
patch.go fix: 81134: fix unsafe json for ReleaseControllerRevision (#104049) 2021-11-05 06:33:52 -07:00
uid_cache.go Switch GC absentOwnerCache to full reference 2020-11-17 10:42:48 -05:00