Commit Graph

106 Commits

Author SHA1 Message Date
Li Bo 749d2ba8ae delete Evicted pods first during pod gc 2023-03-07 10:11:01 +08:00
Michal Wozniak 3833c0c349 PodGC should not add DisruptionTarget condition for pods which are in terminal phase 2023-01-13 18:28:44 +01:00
Michal Wozniak c803892bd8 Enable the feature into beta 2022-11-09 09:02:40 +01:00
xing-yang 85f5583684 Address review comments 2022-11-02 22:40:02 +00:00
xing-yang b4e6bed525 Moved Register() to init() 2022-11-02 19:54:38 +00:00
xing-yang 8ce37fde95 Add metric deleting_pods_total 2022-11-02 11:01:47 +00:00
Michal Wozniak fea883687f SSA to add pod failure conditions - ready for review 2022-10-27 18:21:33 +02:00
Kubernetes Prow Robot 23721935d3
Merge pull request #113129 from chaunceyjiang/pr_remove_redundant_conversion
Remove redundant type conversion
2022-10-18 10:23:19 -07:00
chaunceyjiang d2b372e029 Remove redundant type conversion
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-10-18 14:37:40 +08:00
Han Kang 2bbd445f50 remove rate limiter metric as it is not in use
Change-Id: I91157653e3860eeecc3f572aee88da6ffc65faed
2022-10-13 13:07:11 -07:00
JunYang 2db4dea565 use klog.InfoS instead of klog.V(0).InfoS 2022-08-25 18:46:34 +08:00
Michal Wozniak 04fcbd721c Introduction of a pod condition type indicating disruption. Its `reason` field indicates the reason:
- PreemptionByKubeScheduler (Pod preempted by kube-scheduler)
- DeletionByTaintManager (Pod deleted by taint manager due to NoExecute taint)
- EvictionByEvictionAPI (Pod evicted by Eviction API)
- DeletionByPodGC (an orphaned Pod deleted by PodGC)PreemptedByScheduler (Pod preempted by kube-scheduler)
2022-08-02 11:12:16 +02:00
Michal Wozniak 2f61b6105c Add integration tests for podgc 2022-07-20 15:17:14 +02:00
Michal Wozniak 778b8300bc fix nits 2022-07-12 10:16:00 +02:00
Michal Wozniak 2730d285cf do not store context 2022-07-12 10:13:47 +02:00
Michal Wozniak 4a3d51359a Refact GC controller to do not use stub deletePod 2022-07-12 10:13:47 +02:00
Ashutosh Kumar c00975370a
Handle Non-graceful Node Shutdown (#108486)
Signed-off-by: Ashutosh Kumar <sonasingh46@gmail.com>

Co-authored-by: Ashutosh Kumar <sonasingh46@gmail.com>

Co-authored-by: xing-yang <xingyang105@gmail.com>
2022-03-26 09:23:21 -07:00
Kubernetes Prow Robot f979b4094e
Merge pull request #99292 from yangjunmyfm192085/run-test23
replace all occurrences of "node", nodeName to "node", klog.KRef("", nodeName)
2022-03-17 12:22:42 -07:00
Davanum Srinivas 9682b7248f
OWNERS cleanup - Jan 2021 Week 1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-10 08:14:29 -05:00
JUN YANG 13fa2b1949 replace all occurrences of "node", nodeName to "node", klog.KRef("", nodeName) 2022-01-06 21:19:29 +08:00
Davanum Srinivas 497e9c1971
Cleanup OWNERS files (No Activity in the last year)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-15 10:34:02 -05:00
Davanum Srinivas 9405e9b55e
Check in OWNERS modified by update-yamlfmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-09 21:31:26 -05:00
Mike Dame 4960d0976a Wire contexts to Core controllers 2021-11-01 10:29:00 -04:00
Kubernetes Prow Robot 372103f4b8
Merge pull request #100672 from wangyx1992/structured-log
Structured Logging migration: modify logs of controller-manager
2021-09-22 20:27:10 -07:00
wojtekt e233feb99b Migrate to k8s.io/utils/clock in pkg/controller 2021-09-10 11:42:32 +02:00
Stephen Augustus 481cf6fbe7
generated: Run hack/update-gofmt.sh
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-08-24 15:47:49 -04:00
wangyx1992 7175d82a27 Structured Logging migration: modify logs of controller-manager
Signed-off-by: wangyx1992 <wang.yixiang@zte.com.cn>
2021-04-25 11:27:44 +08:00
Benjamin Elder 56e092e382 hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
Nikhita Raghunath b11516d69f *: move gmarek to emeritus_approvers 2021-02-16 10:59:19 +05:30
andyxning 2e22ef50ea code clean for podgc 2020-07-04 23:01:16 +08:00
Davanum Srinivas 07d88617e5
Run hack/update-vendor.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:33 -04:00
Davanum Srinivas 442a69c3bd
switch over k/k to use klog v2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:27 -04:00
wccsama c776e80109 using case name instead 2020-04-30 13:55:50 +08:00
wccsama 7d45e12523 use sub test in gc_controller_test.go 2020-04-29 11:12:35 +08:00
Mike Danese aaf855c1e6 deref all calls to metav1.NewDeleteOptions that are passed to clients.
This is gross but because NewDeleteOptions is used by various parts of
storage that still pass around pointers, the return type can't be
changed without significant refactoring within the apiserver. I think
this would be good to cleanup, but I want to minimize apiserver side
changes as much as possible in the client signature refactor.
2020-03-05 14:59:46 -08:00
Mike Danese c58e69ec79 automated refactor 2020-03-05 14:59:46 -08:00
Mike Danese 25651408ae generated: run refactor 2020-02-08 12:30:21 -05:00
Mike Danese 3aa59f7f30 generated: run refactor 2020-02-07 18:16:47 -08:00
Kobayashi Daisuke ed1381e35f Fix staticcheck in pkg/controller/podgc 2020-01-17 15:42:38 +09:00
Kubernetes Prow Robot d379ab2697
Merge pull request #84288 from wojtek-t/cleanup_conversions_registrations
Cleanup conversions registrations
2019-10-25 22:53:22 -07:00
wojtekt 7b6bcdf780 Autogenerated code 2019-10-24 20:21:00 +02:00
Jacek Kaniuk 39883f08bf Pod GC controller - use node lister 2019-10-23 16:54:54 +02:00
Yassine TIJANI c1487840bc move util/metrics to component-base
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-10-08 14:42:31 +02:00
mengyang02 b5f44d5aab optimize gc_controller.gcTerminated 2019-09-16 16:34:08 +08:00
Yassine TIJANI 7e4c3096fe move WaitForCacheSync to the sharedInformer package
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-08-22 16:13:41 +01:00
stewart-yu ecbd5427e7 auto-generated file 2019-03-02 12:55:26 +08:00
stewart-yu e01ff1641c move config local to every controllers in kube-controller-manager 2019-03-02 12:54:33 +08:00
Kubernetes Prow Robot 808f2cf0ef
Merge pull request #72525 from justinsb/owners_should_not_be_executable
Remove executable file permission from OWNERS files
2019-02-14 23:55:45 -08:00
Roy Lenferink b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Justin SB dd19b923b7
Remove executable file permission from OWNERS files 2019-01-11 16:42:59 -08:00