Abdullah Gharaibeh
d7e80ab038
Implement pod deletion cost
2021-03-01 13:45:58 -05:00
Clayton Coleman
8d8884a907
daemonset: Remove unnecessary error returns in strategy code
...
The nodeShouldRunDaemonPod method does not need to return an error
because there are no scenarios under which it fails. Remove the
error return path for its direct calls as well.
2021-03-01 13:23:18 -05:00
Clayton Coleman
9f296c133d
daemonset: Simplify the logic for calculating unavailable pods
...
In order to maintain the correct invariants, the existing maxUnavailable
logic calculated the same data several times in different ways. Leverage
the simpler structure from maxSurge and calculate pod availability only
once, as well as perform only a single pass over all the pods in the
daemonset. This changed no behavior of the current controller, and
has a structure that is almost identical to maxSurge.
2021-03-01 13:23:16 -05:00
Clayton Coleman
18f43e4120
daemonset: Implement MaxSurge on daemonset update
...
If MaxSurge is set, the controller will attempt to double up nodes
up to the allowed limit with a new pod, and then when the most recent
(by hash) pod is ready, trigger deletion on the old pod. If the old
pod goes unready before the new pod is ready, the old pod is immediately
deleted. If an old pod goes unready before a new pod is placed on that
node, a new pod is immediately added for that node even past the MaxSurge
limit.
The backoff clock is used consistently throughout the daemonset controller
as an injectable clock for the purposes of testing.
2021-03-01 13:21:12 -05:00
Clayton Coleman
6bac5019aa
podutil: Use parenthesis for clarity around the pod ready condition
...
While this is correct in order of operations, it is harder to read
and masks the intent of the user without the parenthesis.
2021-03-01 13:21:01 -05:00
Clayton Coleman
8e6f58b0bd
daemonset: Prevent accidental omissions of test condition checks
...
It is too easy to omit checking the return value for the
syncAndValidateDaemonSet test in large suites. Switch the method
type to be a test helper and fatal/error directly. Also rename
a method that referenced the old name 'Rollback' instead of
'RollingUpdate'.
2021-03-01 13:20:58 -05:00
Kubernetes Prow Robot
35c233f18d
Merge pull request #99590 from liggitt/kubelet-warning
...
Avoid kubelet warnings for imagePullSecret entries with empty names
2021-03-01 09:55:39 -08:00
Kubernetes Prow Robot
5498ee641b
Merge pull request #99561 from BenTheElder/remove-bazel
...
Remove Bazel
2021-03-01 09:55:27 -08:00
Krzysztof Gibuła
7097d4f8e2
Migrate pkg/kubelet/stats to structured logging
2021-03-01 18:52:34 +01:00
Kubernetes Prow Robot
f6152d1521
Merge pull request #97086 from xing-yang/check_datasource
...
Only CSI plugin can have a DataSource
2021-03-01 06:53:26 -08:00
Iceber Gu
aff9df2cf6
dockershim: fix started and finished timestamp of the container status
...
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io >
2021-03-01 22:33:56 +08:00
Jordan Liggitt
4798d0bce2
Avoid kubelet warnings for imagePullSecret entries with empty names
2021-03-01 08:32:09 -05:00
wzshiming
67e4ba0797
Speed up pkg/controller/volume/scheduling unit tests
2021-03-01 11:53:45 +08:00
Morten Torkildsen
5ad4280c09
Avoid sending events for every non-conformant pod in disruption controller
2021-02-28 19:43:25 -08:00
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08:00
mengjiao.liu
cb4139cdde
update SingnerName field doc
2021-02-28 18:21:29 +08:00
Jordan Liggitt
ec4d1b3821
Skip visiting empty secret and configmap names
2021-02-27 15:54:38 -05:00
wzshiming
bc3d9252bc
Speed up pkg/volume/csi unit tests
2021-02-27 14:09:38 +08:00
drfish
da6d5669b3
Remove outdated TODO in node_affinity.go
2021-02-27 14:00:33 +08:00
Kubernetes Prow Robot
29c661bd2f
Merge pull request #97834 from chrishenzie/volume-attachment-informer
...
Update CSI attacher to fetch VolumeAttachments from lister
2021-02-26 13:58:15 -08:00
Kubernetes Prow Robot
c200a8f9b7
Merge pull request #98433 from damemi/remove-helper-from-volume-zone
...
Move GetPersistentVolumeClaimClass to component-helpers
2021-02-26 12:38:15 -08:00
Kubernetes Prow Robot
d2edd33ae5
Merge pull request #98171 from pandaamanda/remove_duplicate_import
...
Remove duplicate package import in empty_dir_test.go
2021-02-26 10:40:16 -08:00
drfish
38ad860c2f
Unroll PreemptHandle to Handle
2021-02-27 00:44:05 +08:00
uzuku
8c53bfe1ea
Fix typo in comment for purgeInitContainers.
2021-02-26 21:33:31 +08:00
Hanamantagoud
549b615439
Number of sockets is assumed to be same as NUMA nodes
2021-02-26 16:22:50 +05:30
Benjamin Elder
122966522e
drop obsolete verify-util-pkg.sh
...
https://github.com/kubernetes/test-infra/pull/21037 obsoletes this
2021-02-26 00:03:23 -08:00
Kubernetes Prow Robot
525e397a48
Merge pull request #98546 from divyenpatel/deprecate-vcp-paramters
...
deprecating in-tree vsphere volume diskformat parameters, vsphere less than 67u3, vm hardware less than 15 and multi vCenter support
2021-02-25 13:52:15 -08:00
Geonju Kim
b4b7cea413
kubelet_test: Add TestHandlePodRemovesWhenSourcesAreReady
2021-02-26 06:34:27 +09:00
Geonju Kim
256447a349
kubelet_test: Fix TestHandlePodCleanups
2021-02-26 06:34:17 +09:00
Geonju Kim
fc4a29da2c
kubelet: Make the test fail if (*FakeRuntime).Assert fails
2021-02-26 06:31:54 +09:00
Kubernetes Prow Robot
c198632a12
Merge pull request #97098 from alaypatel07/cronjob-controller-2-follow-up-2
...
fix the case of time drift and re-implement next schedule calculation
2021-02-25 12:21:40 -08:00
Kubernetes Prow Robot
6d16a7737f
Merge pull request #99406 from gavinfish/sched-remove-fw-todo
...
Scheduler: remove legacy TODO in framework.go
2021-02-25 10:01:45 -08:00
Kubernetes Prow Robot
4fefc856db
Merge pull request #99213 from AliceZhang2016/affinity
...
parse pod's node affinity once in preFilter
2021-02-25 10:01:24 -08:00
Jing Xu
70e01c5e47
Use Lstat in plugin watcher to avoid Windows problem
...
User Lstat in plugin watcher due to Windows issue
Change-Id: I4f9b808829f1a56dc622e343c291d3ffc316f416
2021-02-25 08:45:27 -08:00
xing-yang
676a3a7012
Only CSI plugin can have a DataSource
2021-02-25 15:27:26 +00:00
mengjiao.liu
3a09f7e5e4
Clarify external CSR signerName description
2021-02-25 16:34:37 +08:00
Jiawei Wang
819a3be084
Update inline volume spec comments
2021-02-24 21:23:36 -08:00
Kubernetes Prow Robot
27c89b9aec
Merge pull request #98571 from matthyx/52817
...
Stop probing a pod during graceful shutdown
2021-02-24 18:01:24 -08:00
Mengxue Zhang
4fb8e343c0
parse pod's node affinity once in preFilter
2021-02-25 00:21:32 +00:00
Kubernetes Prow Robot
8feec9bf94
Merge pull request #99351 from CaoDonghui123/fixissues3
...
Remove deadcode
2021-02-24 15:29:34 -08:00
Kubernetes Prow Robot
17c3ee8708
Merge pull request #98742 from gjkim42/sync-until-terminate-containers
...
kubelet: Sync completed pods until their containers have been terminated
2021-02-24 15:29:26 -08:00
Kubernetes Prow Robot
1fb27c4b5d
Merge pull request #99355 from chymy/dockershim-unused-func
...
Remove unused func in kubernetes/pkg/kubelet/dockershim
2021-02-24 13:39:36 -08:00
Kubernetes Prow Robot
739a72b9cc
Merge pull request #99158 from wgahnagl/lock-sysctls
...
Graduate sysctls to GA
2021-02-24 13:39:24 -08:00
Alay Patel
cebbc6b487
cronjob: use the same schedule Parser for tests as the reconcile loop
2021-02-24 13:50:03 -05:00
Alay Patel
6290a23ceb
cronjob_controllerv2: gracefully handle 0 seconds between schedules
2021-02-24 13:48:56 -05:00
Kubernetes Prow Robot
1d02dfb79a
Merge pull request #99085 from gavinfish/jieshe/nominated-podinfo
...
Scheduler: Use PodInfo instead of Pod for nominatedPods and QueuedPodInfo
2021-02-24 08:52:50 -08:00
drfish
4e79760968
Remove legacy TODO in framework.go
2021-02-24 23:43:45 +08:00
Kubernetes Prow Robot
a42ff247af
Merge pull request #90105 from xiaoanyunfei/cleanup/pkg_apis_core
...
Scheduler: remove pkg/apis/core/field_constants.go
2021-02-24 07:30:50 -08:00
Daniela Lins
611f061c45
Change error msg and comments to easily find test
...
Signed-off-by: Daniela Lins <danielamlins@gmail.com >
2021-02-24 13:09:13 +01:00
Kubernetes Prow Robot
4cc1127e92
Merge pull request #99229 from tanjing2020/subtests
...
attacher: organize unit tests into subtests
2021-02-24 02:08:50 -08:00