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
JUN YANG
13fa2b1949
replace all occurrences of "node", nodeName to "node", klog.KRef("", nodeName)
2022-01-06 21:19:29 +08:00
Mike Dame
4960d0976a
Wire contexts to Core controllers
2021-11-01 10:29:00 -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
andyxning
2e22ef50ea
code clean for podgc
2020-07-04 23:01:16 +08: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
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
3aa59f7f30
generated: run refactor
2020-02-07 18:16:47 -08: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
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
tanshanshan
623278fdba
add ns info for pod in log
2018-08-01 16:25:34 +08:00
Kevin
4c8539cece
use core client with explicit version globally
2017-10-27 15:48:32 +08:00
gmarek
0504cfbc25
Make metav1.(Micro)?Time functions take pointers
2017-08-17 11:24:28 +02:00
Jacob Simpson
29c1b81d4c
Scripted migration from clientset_generated to client-go.
2017-07-17 15:05:37 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Andy Goldstein
e63fcf708d
Make controller Run methods consistent
...
- startup/shutdown logging
- wait for cache sync logging
- defer utilruntime.HandleCrash()
- wait for stop channel before exiting
2017-04-14 07:27:45 -04:00
deads2k
fd34b11e13
react to informer updates
2017-02-13 09:18:32 -05:00
Andy Goldstein
70c6087600
Replace hand-written informers with generated ones
...
Replace existing uses of hand-written informers with generated ones.
Follow-up commits will switch the use of one-off informers to shared
informers.
2017-02-06 13:49:27 -05:00
deads2k
b0b156b381
make tools/cache authoritative
2017-01-25 08:29:45 -05:00
Clayton Coleman
be6d2933df
refactor: Move *Options references to metav1
2017-01-24 13:41:51 -05:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
deads2k
1ce0637b27
move listers out of cache to reduce import tree
2017-01-20 15:01:38 -05:00
Klaus Ma
25fe1e0d82
Made cache.Controller to be interface.
2017-01-13 13:33:23 +08:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
NickrenREN
639572ac68
fix redundant alias and remove unused function
2017-01-09 17:13:09 +08:00
Chao Xu
03d8820edc
rename /release_1_5 to /clientset
2016-12-14 12:39:48 -08:00
gmarek
15f2dbe13c
gcOrphaned check via the API that the node doesn’t exist
2016-12-06 12:17:38 +01:00
Chao Xu
7eeb71f698
cmd/kube-controller-manager
2016-11-23 15:53:09 -08:00
gmarek
78bc6c2ecd
Add logs near force deletions of Pods
2016-11-16 15:00:01 +01:00
Anirudh
1ae1a19e7b
addressing comments.
2016-10-27 13:30:04 -07:00
Anirudh
05365d7cb2
Moving deletion behavior from the NC into PodGC
...
This should be a NOP because we're just moving functionality
around and thanks to #35476 , the podGC controller should always
run anyway.
2016-10-27 11:56:15 -07:00
Jan Chaloupka
6079053407
Update clientset generator to use RESTClient interface instead of the RESTClient data type
2016-10-21 10:13:51 +02:00
gmarek
fd874ab173
PodGCController waits for informer sync before doing anything.
2016-10-14 15:24:09 +02:00
gmarek
cb0a13c1e5
Move orphaned Pod deletion logic to PodGC
2016-09-28 13:58:31 +02:00
Mike Danese
a765d59932
move informer and controller to pkg/client/cache
...
Signed-off-by: Mike Danese <mikedanese@google.com>
2016-09-15 12:50:08 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Chao Xu
91de14cf13
rename the gc for terminated pods to "podgc"
2016-06-07 22:10:34 -07:00