Commit Graph

7224 Commits

Author SHA1 Message Date
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
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
Kubernetes Prow Robot
1192ca09f0 Merge pull request #76634 from xichengliudui/addConsts
Using const() defines constants together
2019-04-18 01:50:10 -07:00
Kubernetes Prow Robot
6bc42d5bc0 Merge pull request #75869 from WanLinghao/cm_log_fix
Fix a log info error
2019-04-17 21:14:01 -07:00
Kubernetes Prow Robot
32a49828fe Merge pull request #76456 from codenrhoden/mv-exec-mounter
Move ExecMount to pkg/volume/util/exec
2019-04-17 12:16:20 -07:00
Kubernetes Prow Robot
aff3f0c61c Merge pull request #76665 from tallclair/imageref
Use consistent imageRef during container startup
2019-04-16 19:14:34 -07:00
Kubernetes Prow Robot
dffbae622a Merge pull request #76633 from xichengliudui/little-bug
Small bug: Comments and function names do not match
2019-04-16 17:48:34 -07:00
Yu-Ju Hong
903f635ab3 dockershim: Fix negotiating docker API version
API version negotiation needs to happen before any meaningful docker
calls, including simple commands such as "/version".
2019-04-15 15:25:06 -07:00
Kubernetes Prow Robot
097d58523a Merge pull request #75278 from Nessex/updatecontainerresources-label-fix
Fix label on UpdateContainerResources operation
2019-04-12 08:44:48 -07:00
Kubernetes Prow Robot
78f571dcfc Merge pull request #76291 from dims/update-to-latest-cadvisor-remove-mesos-rkt
Update to latest cadvisor - cleanup mesos/rkt
2019-04-12 06:15:00 -07:00
Kubernetes Prow Robot
b7858e31d4 Merge pull request #76074 from danielqsj/probe
change kubelet probe metrics to counter
2019-04-12 03:23:04 -07:00
Kubernetes Prow Robot
c6338979ff Merge pull request #75843 from alok87/update-dep-docker-docker-18.09.3
Update docker/docker dependency to release 18.09.4
2019-04-12 03:22:48 -07:00
Davanum Srinivas
1707144b0d Adjust our use of cadvisor to pull in just runtimes we need
- We drop mesos and rkt support in cadvisor

Change-Id: Id4dcafdecc97802b2def95a572e67842e7507f7b
2019-04-11 14:59:48 -04:00
Davanum Srinivas
70d562a6ac Update to latest cadvisor - cleanup mesos/rkt
Change-Id: Ib5ae0cb13b93f8c87bb74e3ba33040df5f3d6a6f
2019-04-11 14:49:23 -04:00
Travis Rhoden
f38d4938be Move ExecMount to pkg/volume/util/exec
This patch moves the ExecMounter found in pkg/util/mount to
pkg/volume/util/exec. This is done in preparation for pkg/util/mount to
move out of tree. This specific implemention of mount.Interface is only
used internally to K8s and does not need to move out of tree.
2019-04-11 12:19:55 -06:00
Alok Kumar Singh
5b3a44fd56 Use docker api IsErrNotFound(). String handling is not required anymore
Why? https://github.com/kubernetes/kubernetes/pull/75843#discussion_r273785877
Moby support: https://github.com/moby/moby/pull/38689
Moby def: 053c6f097a/client/errors.go (L44-L49)
2019-04-11 20:52:57 +05:30
aaa
bad985dc3a Using const() defines constants together 2019-04-10 17:41:29 -04:00
aaa
49a2b1fd8f Small bug: Comments and function names do not match
add a function
2019-04-10 17:37:24 -04:00
Tim Allclair
26e3c8674e Use consistent imageRef during container startup 2019-04-10 12:06:42 -07:00
Kubernetes Prow Robot
98104e44f3 Merge pull request #76020 from qingsenLi/k8s190402-fix-healty
fix typo  healty
2019-04-09 15:18:45 -07:00
Kubernetes Prow Robot
c2acec5c77 Merge pull request #71679 from RobertKrawitz/logspam-cleanup
Clean up PR #71617
2019-04-09 11:20:48 -07:00
Daniel Mueller
9050c510e6 Remove unused variables from computePodPhase
The initialized and failed variables in the computePodPhase function are
effectively write only. Remove them.
2019-04-08 09:09:09 -07:00
Robert Krawitz
022f7c2cd7 Clean up PR #71617 2019-04-08 10:34:40 -04:00
Xing Yang
000ab86788 Move CSIDriver Lister to the controller 2019-04-05 12:20:11 -07:00
Kubernetes Prow Robot
a727bddc5e Merge pull request #75523 from freehan/bug-fix
reconcile pod ready condition when message is not expected
2019-04-04 23:53:19 -07:00
Kubernetes Prow Robot
28295b0e78 Merge pull request #76098 from smarterclayton/move_direct_encoder
Move DirectEncoder to runtime, rename, add .WithoutConversion() on CodecFactory
2019-04-04 21:07:55 -07:00
Kubernetes Prow Robot
dc1ff116dc Merge pull request #74220 from tedyu/master
Aggregate errors for kube runtime GC
2019-04-04 17:47:19 -07:00
danielqsj
6d041abba7 remove metrics prober_probe_result 2019-04-04 17:03:11 +08:00
Clayton Coleman
7f9dfe58f4 Use CodecFactory.WithoutConversion() everywhere
Clarifies that requesting no conversion is part of the codec factory, and
future refactors will make the codec factory less opionated about conversion.
2019-04-03 22:19:13 -04:00
Dr. Stefan Schimanski
37046e3028 Handle feature gate errors 2019-04-03 16:52:05 +02:00
danielqsj
295d672d54 change kubelet probe metrics to counter type 2019-04-03 17:44:17 +08:00
qingsenLi
4db2227629 fix typo healty 2019-04-03 03:29:22 +08:00
Giuseppe Scrivano
a561196bfe logs: consume all file until EOF on exited container
If the container is not found, do not stop reading the log file
immediately but wait until we reach again EOF.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:21 +01:00
Giuseppe Scrivano
8f68b281e4 kubelet: force checking the log file every second
it seems fsnotify can miss some read events, blocking the kubelet to
receive more data from the log file.

If we end up waiting for events with fsnotify, force a read from the
log file every second so that are sure to not miss new data for longer
than that.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:20 +01:00
Giuseppe Scrivano
341c2c0d1f kubelet: handle recreated log files
if the runtime is configured to rotate the log file, we might end up
watching the old fd where there are no more writes.

When a fsnotify event other than Write is received, reopen the log
file and recreate the watcher.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:20 +01:00
Giuseppe Scrivano
2c30eee92f kubelet: read immediately after creating the watcher
if some events happen between the Read and while we set the watcher,
we might miss them.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:11 +01:00
Kubernetes Prow Robot
dabeb20a1a Merge pull request #75587 from tiffanyfay/cred-provider
Refactor AWS credential provider
2019-03-29 14:48:47 -07:00
WanLinghao
62d8081eda Fix a log info error 2019-03-29 13:27:10 +08:00
Kubernetes Prow Robot
4b3eb60081 Merge pull request #75531 from dims/add-new-staging-repository-for-cri-api
New staging repository for cri-api
2019-03-26 18:10:49 -07:00