Commit Graph

116464 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
6ca4f541d5
Merge pull request #117987 from dims/update-the-cgroups-v2-toleration-in-local-up-cluster
Update the cgroups v2 toleration in local-up-cluster
2023-05-13 10:45:26 -07:00
Kensei Nakada
13cef6a754
cleanup unused variables for v1beta2 component config 2023-05-14 00:22:25 +09:00
Jordan Liggitt
815578295a
Revert "support short name for flowschema and prioritylevelconfiguration"
This reverts commit 3dd0c41663.
2023-05-13 11:11:04 -04:00
Jordan Liggitt
72202f9a00
Revert "add shortnames for mutatingwebhookconfigurations and validatingwebhookconfigurations"
This reverts commit 7514d8b333.
2023-05-13 11:10:55 -04:00
Kubernetes Prow Robot
9bb6db25fc
Merge pull request #117950 from rjsadow/master
fix: use dl.k8s.io, not kubernetes-release bucket
2023-05-13 06:47:26 -07:00
Stephen Kitt
45836971f2
cli: replace intstr.FromInt with intstr.FromInt32
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-13 14:03:46 +02:00
Ricky Sadowski
8580c116d5 fix: use dl.k8s.io, not kubernetes-release bucket
This PR updates changes related references to the legacy
release bucket, excluding CHANGELOG updates.

Signed-off-by: Ricky Sadowski <richard.j.sadowski@gmail.com>
2023-05-13 10:57:41 +00:00
Kubernetes Prow Robot
d8f60a1e8c
Merge pull request #117959 from humblec/openconsensus
opencensus update to v0.24.0
2023-05-12 21:25:36 -07:00
Kubernetes Prow Robot
d62754da57
Merge pull request #117923 from humblec/etcd-4
update golang version of etcd build to 1.19.9
2023-05-12 21:25:25 -07:00
Daniel Lipovetsky
ef9f8d7c0c
kubeadm: Remove leading zeros from etcd member ID in log messages 2023-05-12 17:38:44 -07:00
Daniel Lipovetsky
ff4c6916ec
kubeadm: Fix log message when etcd member is added as learner 2023-05-12 17:38:44 -07:00
Davanum Srinivas
196e2f041b
Update the cgroups v2 toleration in local-up-cluster
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-05-12 17:40:38 -04:00
Kubernetes Prow Robot
8479db5876
Merge pull request #117946 from lavalamp/lavalamp-taking-a-break
lavalamp is taking a long break
2023-05-12 14:34:47 -07:00
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
Yuki Iwai
2e2afc7fd2 Job: Use generic Set in validation
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-05-12 03:26:25 +09:00