Commit Graph

7266 Commits (73c2daeeeadb5d91b8480205e6317537e8d00159)

Author SHA1 Message Date
Kubernetes Prow Robot ef9e794a36
Merge pull request #77656 from yastij/check-cstat-mem
check if Memory is not nil for container stats
2019-05-09 17:52:23 -07:00
Kubernetes Prow Robot b7dc0124a0
Merge pull request #77379 from tedyu/http-stat-map
Use map to check whether stack trace is needed
2019-05-09 14:13:34 -07:00
Yassine TIJANI f6087365e9 check if Memory is not nil for container stats 2019-05-09 14:53:38 +02:00
Kubernetes Prow Robot 60a4c3c003
Merge pull request #76603 from changyaowei/generic_ut_fix
fix  TestEventChannelFull random fail
2019-05-08 17:14:47 -07:00
Ted Yu 85fc089855 Use map to check whether stack trace is needed
Signed-off-by: Ted Yu <yute@vmware.com>
2019-05-08 14:31:50 -07:00
Kubernetes Prow Robot 09c4e10333
Merge pull request #74021 from andrewsykim/move-features-component-base
Move feature gate package from k8s.io/apiserver to k8s.io/component-base
2019-05-08 13:06:34 -07:00
Daniel (Shijun) Qian 5268f69405 fix duplicated imports of k8s code (#77484)
* fix duplicated imports of api/core/v1

* fix duplicated imports of client-go/kubernetes

* fix duplicated imports of rest code

* change import name to more reasonable
2019-05-08 10:12:47 -07:00
Andrew Kim c919139245 update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate 2019-05-08 10:01:50 -04:00
Kubernetes Prow Robot 946087b422
Merge pull request #77426 from Random-Liu/remove-terminated-pod
Remove terminated pod from summary api.
2019-05-07 15:55:23 -07:00
Kubernetes Prow Robot caad1635ce
Merge pull request #77409 from gnufied/add-volume-manager-approvers
Add jan and msau42 as approver for volumemanager
2019-05-07 15:54:59 -07:00
Kubernetes Prow Robot b4211dea98
Merge pull request #77422 from tedyu/policy-set-union
Union all CPUSets in one round
2019-05-06 14:02:05 -07:00
Lantao Liu 11cd4242f6 Remove terminated pod from summary api.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-05-03 18:34:54 -07:00
Ted Yu e967c37068 Union all CPUSets in one round 2019-05-03 14:40:33 -07:00
Hemant Kumar 15e2421f90 Add jan and msau42 as approver for volumemanager 2019-05-03 13:34:50 -04:00
Kubernetes Prow Robot 6a8a368291
Merge pull request #77287 from tedyu/kube-long-running
Use map to check for long-running request
2019-05-02 16:23:09 -07:00
Kubernetes Prow Robot 98c4c1e2d8
Merge pull request #77291 from tedyu/cpu-pod-stat
Query pod status outside loop over containers
2019-05-01 23:28:56 -07:00
Kubernetes Prow Robot a5a70b4de3
Merge pull request #74859 from ahadas/static_policy
kubelet/cm: code optimization for the static policy
2019-05-01 23:28:19 -07:00
Kubernetes Prow Robot 7d14d53999
Merge pull request #77162 from klueska/upstream-cpu-manager-find-init-containers
Add ability to find init Container IDs in cpumanager reconcileState()
2019-05-01 18:42:30 -07:00
Ted Yu 3fc16a7e82 Log pod name when pod status cannot be queried 2019-05-01 15:01:56 -07:00
Kubernetes Prow Robot d457a5d214
Merge pull request #77157 from tedyu/kubelet-node-addr-read
Utilize read lock for getLastObservedNodeAddresses
2019-05-01 14:32:42 -07:00
Kubernetes Prow Robot b219272a76
Merge pull request #77165 from mattjmcnaughton/mattjmcnaughton/77138-increase-max-msg-size-dockershim
Increase maxMsgSize for dockershim
2019-04-30 20:50:56 -07:00
Ted Yu 66ce52578a Query pod status outside loop over containers 2019-04-30 19:35:32 -07:00
Ted Yu fe6e50df3d Use map to check for long-running request
Signed-off-by: Ted Yu <yute@vmware.com>
2019-04-30 19:32:35 -07:00
Kubernetes Prow Robot 16085784bc
Merge pull request #75110 from bertinatto/fix_race_watcher
Send events before adding watchers in traversePluginDir
2019-04-29 17:19:38 -07:00
mattjmcnaughton 0547167ad0
Increase maxMsgSize for dockershim
Increase the grpc max message size to be the same as the value defined
in `pkg/kubelet/remote/utils.go`.

Increase the limit because, `ListPodSandbox` (and possibly other) calls
are hitting the limit. Long term, the best solution to this issue is to
use pagination, but that is not currently available.
2019-04-27 13:26:31 -04:00
Kevin Klues ef27f5f1a5 Add ability to find init Container IDs in cpumanager reconcileState()
The cpumanager loops through all init Containers and app Containers when
reconciling its state. However, the current implementation of
findContainerIDByName(), which is call by the reconciler, does not
resolve for init Containers.

This patch updates findContainerIDByName() to account for init
Containers and adds a regression test that fails before the change and
succeeds after.
2019-04-27 06:18:55 -07:00
Ted Yu 1be83c9d4d Utilize read lock for getLastObservedNodeAddresses 2019-04-26 20:05:49 -07:00
changyaowei 850f4bbd36 modify random failure 2019-04-27 08:04:58 +08:00
Kubernetes Prow Robot 5b43333291
Merge pull request #76884 from SataQiu/fix-golint-pkg/kubelet/pod
Fix golint failures of pkg/kubelet/pod
2019-04-25 13:37:06 -07:00
Kubernetes Prow Robot f4937619a2
Merge pull request #75442 from mars1024/bugfix/bandwidth_unit
change bandwidth units from Kb to b
2019-04-25 13:36:54 -07:00
Kubernetes Prow Robot 3bbd0e92e8
Merge pull request #75228 from haiyanmeng/kubelet
Add metrics to monitor the kubelet http server
2019-04-25 13:36:31 -07:00
Kubernetes Prow Robot 40a7a2370b
Merge pull request #76940 from cwdsuzhou/use_locked_func
fix: use locked func to replace the raw one to avoid concurrent read
2019-04-25 12:04:08 -07:00
SataQiu 1581055c3a fix golint failures of pkg/kubelet/pod 2019-04-25 11:54:14 +08:00
SataQiu bf37c8a217 fix golint failures of pkg/kubelet/checkpointmanager/checksum 2019-04-25 09:56:43 +08:00
Kubernetes Prow Robot 5c4a59f9af
Merge pull request #76690 from SataQiu/fix-golint-kubelet-20190417
Fix some golint failures of pkg/kubelet
2019-04-24 12:24:51 -07:00
Kubernetes Prow Robot 8ec6167f61
Merge pull request #74942 from WanLinghao/event_replace
Migrate oom watcher not relying on cAdviosr's API any more
2019-04-24 05:50:05 -07:00
Kubernetes Prow Robot 5a790bce3b
Merge pull request #76763 from SataQiu/ifx-golint-kubelet-20190419
Fix golint failures of pkg/kubelet/apis
2019-04-24 01:24:14 -07:00
Kubernetes Prow Robot ea38af74a9
Merge pull request #76925 from SataQiu/fix-golint-kubelet-2019042302
Fix golint failures of pkg/kubelet/dockershim/cm
2019-04-23 23:50:50 -07:00
Kubernetes Prow Robot 970e5929fe
Merge pull request #76806 from SataQiu/fix-kubelet-golint-20190419
Fix golint failures of pkg/kubelet/checkpoint
2019-04-23 22:10:11 -07:00
SataQiu 828125c725 fix golint failures of pkg/kubelet/apis 2019-04-24 12:56:28 +08:00
Fabio Bertinatto f56455753b Remove unnecessary in-line function 2019-04-23 22:24:33 +02:00
Fabio Bertinatto 817c9ca953 Process plugins found before the ones watched
Currently, the method `pluginwatcher.traversePluginDir` descends into
a directory adding filesystem watchers and creating synthetic `create`
events when it finds sockets files. However, a race condition might
happen when a recently-added watcher observes a `delete` event in a
socket file before `pluginwatcher.traversePlugindir` itself notices
this file.

This patch changes this behavior by registering watchers on
directories, enqueueing and processing `create` events from sockets
found, and only then processing the events from the registered watchers.
2019-04-23 22:24:33 +02:00
caiweidong 2fe823ba46 fix: use locked func to replace the raw one to avoid concurrent read 2019-04-23 21:00:13 +08:00
SataQiu 423e8f0292 fix golint failures of pkg/kubelet/dockershim/cm 2019-04-23 12:59:13 +08:00
Kubernetes Prow Robot 4ec29a1a2b
Merge pull request #76889 from SataQiu/fix-golint-kubelet-util-20190422
Fix golint failures of pkg/kubelet/util
2019-04-22 20:44:25 -07:00
Tim Allclair c12b053390 Reregister cAdvisor cloud info providers in Kubelet 2019-04-22 15:43:45 -07:00
SataQiu cd6828bae0 fix golint failures of pkg/kubelet/util 2019-04-22 15:23:07 +08:00
SataQiu f5736f3fd1 fix some golint failures of pkg/kubelet 2019-04-22 10:40:51 +08:00
Davanum Srinivas 7b8c9acc09
remove unused code
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
SataQiu 0e1956b762 fix golint failures of pkg/kubelet/checkpoint 2019-04-19 18:27:32 +08:00