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
Alan
b00911a920
fix typo: "inidvidual"-> "individual"
...
fix typo: "inidvidual"-> "individual"
2019-04-09 03:02:50 +08: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
tiffany jernigan
847cb24aa1
Credential provider Provide takes image (general)
2019-03-27 01:00:26 +00:00
Davanum Srinivas
33081c1f07
New staging repository for cri-api
...
Change-Id: I2160b0b0ec4b9870a2d4452b428e395bbe12afbb
2019-03-26 18:21:04 -04:00
Kubernetes Prow Robot
531dbd409f
Merge pull request #75445 from shinytang6/enhance/fmt
...
Replace all time.Now().Sub with time.Since
2019-03-26 13:55:17 -07:00
Kubernetes Prow Robot
428a8e04d4
Merge pull request #75458 from jingxu97/March/raceofActualDesiredState
...
Fix race condition between actual and desired state in kublet volume manager
2019-03-25 13:24:51 -07:00
Clayton Coleman
b28e82ad4a
Avoid using %#v for errors when using only a portion of the object
...
`%#v` may have significant performance costs in frequently invoked code.
2019-03-21 22:52:09 -04:00
shinytang6
5c9f4d9dc6
replace time.Now().Sub with time.Since
2019-03-21 18:02:55 +08:00
Minhan Xia
47bc948fe3
reconcile pod ready condition when message is not expected
2019-03-20 14:05:40 -07:00
Kubernetes Prow Robot
26fea2361a
Merge pull request #75166 from qingsenLi/k8s190308-fix-heatbeat
...
spelling error 'heatbeat'
2019-03-20 13:30:59 -07:00
Kubernetes Prow Robot
795c96aa9d
Merge pull request #71822 from houjun41544/20181207-event
...
Remove unused kubelet event reasons
2019-03-20 11:07:47 -07:00
Kubernetes Prow Robot
155688b2f3
Merge pull request #75309 from cwdsuzhou/remove_unused_variable
...
Remove the unused variabe: syncDuration in volumemanager
2019-03-20 07:42:08 -07:00
Kubernetes Prow Robot
16b5f7d3c5
Merge pull request #67487 from tianshapjq/validate-system-kube-reserved
...
validate systemReservedCgroup and kubeReservedCgroup
2019-03-19 21:26:22 -07:00
Kubernetes Prow Robot
046dcbd1ed
Merge pull request #73917 from droslean/cleanup
...
replace loops with go idiomatic.
2019-03-19 19:01:04 -07:00
Jing Xu
7cb5df6728
Fix race condition between actual and desired state in kublet volume
...
manager
This PR fixes the issue #75345 . This fix modified the checking volume in
actual state when validating whether volume can be removed from desired state or not. Only if volume status is already mounted in actual state, it can be removed from desired state.
For the case of mounting fails always, it can still work because the
check also validate whether pod still exist in pod manager. In case of
mount fails, pod should be able to removed from pod manager so that
volume can also be removed from desired state.
2019-03-18 17:08:48 -07:00
Bruce Ma
183247ca5c
change bandwidth units from Kb to b
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com >
2019-03-18 21:22:34 +08:00
Kubernetes Prow Robot
1a24040447
Merge pull request #74781 from liggitt/http2-watch
...
kubelet watch-manager test, restore watch-based manager default
2019-03-16 12:52:56 -07:00
Kubernetes Prow Robot
3512757882
Merge pull request #75416 from tallclair/local-redirects
...
Don't follow non-local redirects from HTTP probes
2019-03-16 09:14:57 -07:00
Kubernetes Prow Robot
0f6196878d
Merge pull request #75367 from feiskyer/fix-dockershim-panic
...
Fix panic when removing docker images
2019-03-16 01:08:56 -07:00
Tim Allclair
e6ea4f0538
Don't follow non-local redirects for http probes
2019-03-15 11:04:30 -07:00
caiweidong
92aee22646
Remove the unused variabe: syncDuration in volumemanager
2019-03-15 10:04:41 +08:00
Kubernetes Prow Robot
b3ec6c17f1
Merge pull request #75144 from Huang-Wei/followup-74222
...
kubelet: updated logic of verifying a static critical pod
2019-03-14 14:41:00 -07:00
Pengfei Ni
a304297c99
Fix panic when removing docker images
2019-03-14 18:53:02 +08:00
Jordan Liggitt
f2a0c0342c
Revert "Revert kubelet to default to ttl cache secret/configmap behavior"
...
This reverts commit cd1c9f9018 .
2019-03-13 15:12:26 -07:00
Wei Huang
d67e7fd47f
kubelet: updated logic of verifying a static critical pod
...
- check if a pod is static by its static pod info
- meanwhile, check if a pod is critical by its corresponding mirror pod info
2019-03-12 23:40:20 -07:00
Nathan Essex
394c581a56
Fix label on UpdateContainerResources operation
2019-03-12 14:18:53 +09:00
Kubernetes Prow Robot
243e740885
Merge pull request #74809 from oxddr/secrets-and-maps
...
Fix secret/configmap management for terminated pods
2019-03-11 16:42:36 -07:00