Commit Graph

116278 Commits

Author SHA1 Message Date
John Howard
7248b9263f
Fix comments on InformerFor 2023-05-12 13:23:17 -07:00
Kubernetes Prow Robot
53636bc780
Merge pull request #117914 from dims/stabilize-local-up-cluster-in-our-CI
Stabilize local-up-cluster in our CI
2023-05-12 10:39:01 -07:00
Clayton Coleman
6ac1bae281
test: Improve debug output of init container tests
When certain status conditions are not expected, we need to see
the nested objects, but %#v doesn't handle pointers well. Output
as simple encoded JSON.
2023-05-12 12:57:28 -04:00
Clayton Coleman
1f16d71185
kubelet: Rename PodManager DeletePod to RemovePod
RemovePod is more consistent within the kubelet to be the opposite
of AddPod, and the pod is not being deleted just "removed" from
tracking.
2023-05-12 12:57:27 -04:00
Clayton Coleman
166256f73e
kubelet: Reduce the interface pod.Manager consumers accept
Every component that uses a pod.Manager should use a stub interface
(like we do for podWorker) that explicitly describes what methods
they use. This will allow podWorker to implement the minimum set
of manager interfaces.
2023-05-12 12:57:27 -04:00
Clayton Coleman
8bd94dfa76
kubelet: Organize and document kubelet pod-related members
Clearly describe core pod related component responsibilities in
the kubelet members. Organize the PodManager interface for clarity.
2023-05-12 12:57:27 -04:00
Clayton Coleman
bb568844b6
kubelet: Separate the MirrorClient from the PodManager
The two are not coupled except accidentally. Separate them and
update callsites. This will reduce the scope of PodManager interface
to make exposing the pod worker cleaner.
2023-05-12 12:57:26 -04:00
Clayton Coleman
80b1aca580
kubelet: Remove dispatchWork and inline calls to UpdatePod
The HandlePod* methods are all structurally similar, but accrued
subtle differences. In general the only point for Handle is to
process admission and to update the pod worker with the desired
state of the kubelet's config (so that pod worker can make it
the actual state).

Add a new GetPodAndMirrorPod() method that handles when the config
pod is ambiguous (pod or mirror pod) and inline the structure.
Add comments on questionable additions in the config methods for
future improvement.

Move the metric observation of container count closer to where
pods are actually started (in the pod worker). A future change
can likely move it to syncPod.
2023-05-12 12:57:26 -04:00
Clayton Coleman
e7207c8546
kubelet: Merge orphaned mirror pod names into GetPodsAndMirrorPods
There is only one caller and both sets of data are part of the
resync operation between kubelet's desired state and the actual
state of the pod workers. Reduces the size of the interface so
that it is easier to create another pod manager.
2023-05-12 12:57:26 -04:00
Clayton Coleman
f8086f2dac
kubelet: Convert IsMirrorOf to a function
Shrinks the PodManager interface by one method, no abstraction is
necessary here.
2023-05-12 12:57:26 -04:00
Clayton Coleman
02960a8253
kubelet: Remove unused mirrorPodFunc in eviction
Not referenced
2023-05-12 12:57:25 -04:00
Kubernetes Prow Robot
84c8abfb8b
Merge pull request #117961 from humblec/ginkgo
ginkgo update to v2.9.4 and gomega to 1.27.6
2023-05-12 09:39:20 -07:00
Kubernetes Prow Robot
58ba509fe5
Merge pull request #117748 from humblec/autirest
dependencies: update gh/Azure/go-autorest to latest version
2023-05-12 09:39:13 -07:00
Kubernetes Prow Robot
c72bedb6cb
Merge pull request #117670 from carlory/fix-issue-117583
e2e framework: remove dependency on k8s.io/kubernetes/pkg/api/v1/pod
2023-05-12 09:39:01 -07:00
Kubernetes Prow Robot
6d7b0b527d
Merge pull request #117956 from humblec/more-deps
update containerd/ttrpc to v1.2.2
2023-05-12 08:37:13 -07:00
Kubernetes Prow Robot
8f9c185696
Merge pull request #116761 from iancoolidge/devel-cpuset-revendor
Complete cpuset export to k/utils by revendoring
2023-05-12 08:37:02 -07:00
Davanum Srinivas
1168b11875
Stabilize local-up-cluster in our CI
- if binaries are already present skip building them
- install missing packages like nftables and kmod
- work better when cgroups v2 is present
- update to newer CNI version (v1.2.0)
- Ensure we wait for coredns to stabilize
- Grab docker log as well (this has containerd logs too)

Used tips from:
- https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/

Tested locally in an environment as close to CI as possible:
- https://gist.github.com/dims/3c83730c99f61e36b8dd2d61abe68fe7

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-05-12 09:16:19 -04:00
Kubernetes Prow Robot
c056c36e23
Merge pull request #117969 from daman1807/fix/proxy-health-check
Release read lock early in proxy service health check
2023-05-12 06:03:09 -07:00
Kubernetes Prow Robot
831a2f0f5a
Merge pull request #117954 from seans3/invalid-openapi-v3
OpenAPI V3 invalid document checks
2023-05-12 06:03:02 -07:00
Kubernetes Prow Robot
a37783467e
Merge pull request #117941 from pohly/logcheck-update
hack/tools: bump logcheck to v0.5.0
2023-05-12 03:02:46 -07:00
Daman Arora
3dc4eea889 proxy/service_health: release read lock early
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2023-05-12 15:04:04 +05:30
kkkkun
655f2f7401 replace build to build.sh
Signed-off-by: kkkkun <scuzk373x@gmail.com>
2023-05-12 17:06:07 +08:00
HirazawaUi
cc1251123b use wait to avoid blocking the SIGTERM handler 2023-05-12 15:45:59 +08:00
Daman Arora
808098c4c6 proxy/ipvs: healthzServer for instantiating the proxier
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2023-05-12 12:57:47 +05:30
Kubernetes Prow Robot
ac7e5cbf69
Merge pull request #117960 from SataQiu/fix-e2e-20230512
e2e_kubeadm: stop using deprecated framework.ExpectEqual
2023-05-12 00:04:48 -07:00
Sean Sullivan
3da79e2850 OpenAPI V3 invalid document checks 2023-05-11 21:44:45 -07:00
Humble Chirammal
cbe825b2b6 ginkgo update to v2.9.4 and gomega to 1.27.6
https://github.com/onsi/ginkgo/v2/compare/v2.9.1...v2.9.4
 https://github.com/onsi/gomega/compare/v1.27.4...v1.27.6

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-12 09:38:26 +05:30
SataQiu
feb63fb028 e2e_kubeadm: stop using deprecated framework.ExpectEqual 2023-05-12 11:54:54 +08:00
kkkkun
7681135f1b etcd: Build image 3.5.9-0
Signed-off-by: kkkkun <scuzk373x@gmail.com>
2023-05-12 11:14:02 +08:00
Humble Chirammal
7a4787ade1 openconsensus update to v0.24.0
https://go.opencensus.io/compare/v0.23.0...v0.24.0

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-12 08:38:21 +05:30
Humble Chirammal
82d1e356de deps: go-gcfg update to the v1.2.3
https://github.com/go-gcfg/gcfg/compare/v1.2.0...v1.2.3

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-12 08:29:56 +05:30
Humble Chirammal
f03b5cdc08 update containerd/ttrpc to v1.2.2
https://github.com/containerd/ttrpc/compare/v1.2.1...v1.2.2

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-12 08:21:39 +05:30
xin.li
dd49af86b7 [UT] add ut for pkg/client/conditions
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-05-12 10:48:46 +08:00
Paco Xu
f7948c6e2e use kubectl v1.27.1 in cluster addon manager
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-05-12 09:34:56 +08:00
Paco Xu
eb1483fe64 user --prune-allowlist in kube-addons.sh
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-05-12 09:34:56 +08:00
carlory
20602c819b e2e framework: remove dependency on k8s.io/kubernetes/pkg/api/v1/pod 2023-05-12 08:39:37 +08:00
Kubernetes Prow Robot
02659772cb
Merge pull request #117931 from tklauser/cidrset-rm-getindexforcidr
cidrset, multicidrset: directly use getIndexForIP method
2023-05-11 10:59:36 -07:00
Kubernetes Prow Robot
06c9a7daee
Merge pull request #117897 from thockin/codegen_deprecate_generate_groups_scripts
Deprecate generate*groups.sh -> kube_codegen.sh
2023-05-11 10:59:28 -07:00
Kubernetes Prow Robot
906a488819
Merge pull request #117893 from soltysh/improve_statefulset_tests
When expecting pods count only active ones
2023-05-11 10:59:21 -07:00
Kubernetes Prow Robot
7522cb2c1f
Merge pull request #117650 from tklauser/wait-correct-comment
wait: fix PollUntilContextTimeout godoc comment
2023-05-11 10:59:14 -07:00
Kubernetes Prow Robot
58e13496d6
Merge pull request #116842 from mengjiao-liu/contextual-logging-scheduler-runtime
Migrated `pkg/scheduler/framework/runtime` to use contextual logging
2023-05-11 10:59:02 -07:00
Kubernetes Prow Robot
367180d781
Merge pull request #117933 from tenzen-y/replace-deprecated-Prt-utils
Job: Replace deprecated pointer utils with supported ones
2023-05-11 09:59:14 -07:00
Kubernetes Prow Robot
87af78dba7
Merge pull request #117907 from SataQiu/fix-controller-log-20230510
Fix a bug where the AttachedVolume is not printed correctly in the log
2023-05-11 09:59:02 -07:00
Daniel Smith
1ffe3f467e lavalamp is taking a long break 2023-05-11 16:43:38 +00:00
Kubernetes Prow Robot
a4f3ebf84b
Merge pull request #117932 from bart0sh/PR114-e2e-DRA-use-containerd-1.7
DRA: use containerd 1.7 in kind image
2023-05-11 08:59:13 -07:00
Kubernetes Prow Robot
64af2d93e5
Merge pull request #117295 from aojea/transport_cache_metrics
add new metric for the internal client-go cache size
2023-05-11 08:59:02 -07:00
Patrick Ohly
1ea17254bf hack/tools: bump logcheck to v0.5.0 2023-05-11 16:54:26 +02:00
SataQiu
3fa55d469c fix a bug where the AttachedVolume is not printed correctly in the log 2023-05-11 22:04:30 +08:00
Kubernetes Prow Robot
e1ad9bee5b
Merge pull request #117902 from TommyStarK/doc/e2e-dra
test/e2e/dra: update README
2023-05-11 04:15:18 -07:00
Maciej Szulik
8c82855467
When expecting pods count only active ones 2023-05-11 13:04:42 +02:00