Davanum Srinivas
a9593d634c
Generate and format files
...
- Run hack/update-codegen.sh
- Run hack/update-generated-device-plugin.sh
- Run hack/update-generated-protobuf.sh
- Run hack/update-generated-runtime.sh
- Run hack/update-generated-swagger-docs.sh
- Run hack/update-openapi-spec.sh
- Run hack/update-gofmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-07-26 13:14:05 -04:00
Kubernetes Prow Robot
a6afdf45dd
Merge pull request #110359 from MadhavJivrajani/remove-api-call-under-lock
...
controller/nodelifecycle: Refactor to not make API calls under lock
2022-07-25 06:20:34 -07:00
Madhav Jivrajani
3c0bc26d90
controller/nodelifecycle: Refactor to not make API calls under lock
...
The evictorLock only protects zonePodEvictor and zoneNoExecuteTainter.
processTaintBaseEviction showed indications of increased lock contention
among goroutines (see issue 110341 for more details).
The refactor done is to ensure that all codepaths in that function that
hold the evictorLock AND make API calls under the lock, are now making
API calls outside the lock and the lock is held only for accessing either
zonePodEvictor or zoneNoExecuteTainter or both.
Two other places where the refactor was done is the doEvictionPass and
doNoExecuteTaintingPass functions which make multiple API calls under
the evictorLock.
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-07-25 15:16:26 +05:30
Michal Wozniak
4ec8cf08da
This PR refactors taint_manager to eliminate the getPod and getNode stubs.
2022-07-14 18:00:44 +02:00
Wojciech Tyczyński
006ff4510b
Clean shutdown of nodecontroller integration tests
2022-06-06 20:33:20 +02:00
wangyamei
3808e193d9
fix typo for nodelifecycle controller
2022-02-28 14:30:28 +08:00
Patrick Ohly
9eaa2dc554
avoid klog Info calls without verbosity
...
In the following code pattern, the log message will get logged with v=0 in JSON
output although conceptually it has a higher verbosity:
if klog.V(5).Enabled() {
klog.Info("hello world")
}
Having the actual verbosity in the JSON output is relevant, for example for
filtering out only the important info messages. The solution is to use
klog.V(5).Info or something similar.
Whether the outer if is necessary at all depends on how complex the parameters
are. The return value of klog.V can be captured in a variable and be used
multiple times to avoid the overhead for that function call and to avoid
repeating the verbosity level.
2022-01-12 07:48:36 +01:00
cyclinder
b88b51c6e5
adding evictions_total metric and marking evictions_number deprecated
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-13 10:36:02 +08:00
Neha Lohia
fa1b6765d5
move pkg/util/node to component-helpers/node/util ( #105347 )
...
Signed-off-by: Neha Lohia <nehapithadiya444@gmail.com>
2021-11-12 07:52:27 -08:00
Mike Dame
4960d0976a
Wire contexts to Core controllers
2021-11-01 10:29:00 -04:00
Author cyclinder
e61b901628
remove nodeLease feature GA
...
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
2021-10-05 12:23:27 +08:00
Mike Dame
af045087d9
Move GetZoneKey function to component-helpers
2021-03-04 10:32:38 -05:00
Michael Beaumont
a5a6762d33
Move pkg/kubelet/apis to k8s.io/kubelet/pkg/apis
2021-02-09 21:37:39 +01:00
Kubernetes Prow Robot
1209c59612
Merge pull request #96876 from howieyuen/no-execute-taint-missing
...
fix nodelifecyle controller not add NoExecute taint bug
2021-01-13 14:17:03 -08:00
pacoxu
441985afb6
set LegacyNodeRoleBehavior to false and mv ServiceNodeExclusion to GA
...
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-01-05 22:34:18 +08:00
Hao Yuan
5569db4902
fix nodelifecyle controller not add NoExecute taint bug
2020-12-14 09:34:57 +08:00
Kobayashi Daisuke
4ae11dac2e
Replace StartLogging(klog.Infof) with StartStructuredLogging(0)
2020-06-15 17:48:35 +09: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
wawa0210
54c0f8b677
Remove the 'beta' version of the node label (os and arch types)
2020-05-13 22:51:52 +08:00
Kubernetes Prow Robot
85ee5fdd90
Merge pull request #87743 from u2takey/master
...
log pod event when node not ready
2020-04-21 17:25:52 -07:00
leiiwang
c6c18c8fed
event pod event when node not ready
2020-04-07 18:24:00 +08:00
kaiyuechen
b3637c9670
Reconcile NoExecute Taint
2020-03-13 11:44:12 +08:00
skilxn-go
6b8fc8dc5e
Move TaintBasedEvictions feature gates to GA
2020-03-09 10:49:00 +08:00
taesun_lee
79680b5d9b
Fix pkg/controller typos in some error messages, comments etc
...
- applied review results by LuisSanchez
- Co-Authored-By: Luis Sanchez <sanchezl@redhat.com>
genernal -> general
iniital -> initial
initalObjects -> initialObjects
intentionaly -> intentionally
inforer -> informer
anotother -> another
triger -> trigger
mutli -> multi
Verifyies -> Verifies
valume -> volume
unexpect -> unexpected
unfulfiled -> unfulfilled
implenets -> implements
assignement -> assignment
expectataions -> expectations
nexpected -> unexpected
boundSatsified -> boundSatisfied
externel -> external
calcuates -> calculates
workes -> workers
unitialized -> uninitialized
afater -> after
Espected -> Expected
nodeMontiorGracePeriod -> NodeMonitorGracePeriod
estimateGrracefulTermination -> estimateGracefulTermination
secondrary -> secondary
ShouldRunDaemonPodOnUnscheduableNode -> ShouldRunDaemonPodOnUnschedulableNode
rrror -> error
expectatitons -> expectations
foud -> found
epackage -> package
succesfulJobs -> successfulJobs
namesapce -> namespace
ConfigMapResynce -> ConfigMapResync
2020-02-27 00:15:33 +09: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
tianfeiyu
fddf50cf88
fix log message error in nodelifecycle
2020-01-06 21:02:08 +08:00
Kubernetes Prow Robot
f0184f0921
Merge pull request #84933 from krzysied/node_controller_v_level
...
Bumping up log level for not updated node
2019-11-08 09:00:40 -08:00
Kubernetes Prow Robot
ae15368355
Merge pull request #84351 from wojtek-t/promote_node_lease_to_GA
...
Promote node lease to GA
2019-11-08 09:00:15 -08:00
Krzysztof Siedlecki
4e63b9a032
bumping up log level for not updated node
2019-11-07 17:59:26 +01:00
Kubernetes Prow Robot
8841624982
Merge pull request #81167 from krzysied/node_controller_list
...
Avoid listing pods in NodeLifecycleController
2019-11-07 07:53:10 -08:00
Krzysztof Siedlecki
9406e5bf2a
adding pods lister
2019-11-07 12:02:21 +01:00
Wei Huang
dd74205bcf
Move out const strings in pkg/scheduler/api/well_known_labels.go
2019-11-05 20:56:21 -08:00
wojtekt
ffad401b4e
Promote NodeLease feature to GA
2019-11-05 09:01:12 +01:00
Kubernetes Prow Robot
5e33f3db5f
Merge pull request #84445 from krzysied/node_controller_retry_fix
...
NodeLifecycleController - MarkPodsNotReady retry fix
2019-11-03 20:15:40 -08:00
Krzysztof Siedlecki
9759a982c5
MarkPodsNotReady retry fix
2019-10-31 16:56:54 +01:00
draveness
1163a1d51e
feat: update taint nodes by condition to GA
2019-10-19 09:17:41 +08:00
wojtekt
cf9203501e
Swtich nodelifecyclecontroller to coordination/v1
2019-10-16 10:59:02 +02:00
Krzysztof Siedlecki
b1dfa83be6
using pod pointers in node lifecycle controller
2019-10-14 12:44:43 +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
Krzysztof Siedlecki
a07a3a6878
adding pods to MarkPodsNotReady parameters
2019-10-02 14:22:58 +02:00
Krzysztof Siedlecki
8f48896709
adding pods to DeletePods parameters
2019-10-02 13:11:23 +02:00
Krzysztof Siedlecki
2f3e8463ef
eviction processing refactor
2019-09-19 17:15:32 +02:00
Krzysztof Siedlecki
029b72b553
adding lock to node data map
2019-09-12 10:23:24 +02:00
Clayton Coleman
2888e6e923
Node lifecycle controller should use a label for excluding nodes
...
The current mechanism for excluding "master" nodes based on node names
is fragile and should be fixed by using a label exclusion similar to
service load balancers. The legacy code path is preserved behind a
defaulted-on gate and will be removed in the future.
2019-08-28 10:29:08 -04:00
Kubernetes Prow Robot
927f45191e
Merge pull request #81527 from yastij/move-controller-util
...
move WaitForCacheSync to the sharedInformer package
2019-08-27 00:52:54 -07:00
Krzysztof Siedlecki
07b039862b
moving podInformer to node controller scope
2019-08-23 15:59:59 +02: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
Krzysztof Siedlecki
6842e11f7e
removing redundant code
2019-08-21 17:22:06 +02:00
Maciej Borsz
98e9c78c13
Migrate TaintManager to use watch for listing pods instead of expensive
...
listing pods call.
2019-06-26 13:35:59 +02:00