Commit Graph

122950 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
71061871ff
Merge pull request #125128 from humblec/up-3-npd
update ip-masq-agent and npd to latest versions in cluster addons
2024-05-30 16:05:55 -07:00
Kubernetes Prow Robot
f30a87d517
Merge pull request #122832 from benluddy/cbor-fuzz-native-to-unstructured-via
KEP-4222: Add roundtrip tests to Unstructured via CBOR and JSON.
2024-05-30 15:00:31 -07:00
Kubernetes Prow Robot
2d083d0a4d
Merge pull request #125219 from danwinship/kind-loadbalancers-3
Fix LoadBalancerSourceRanges test
2024-05-30 13:26:10 -07:00
Kubernetes Prow Robot
a0e3a70d53
Merge pull request #124671 from saschagrunert/logs-staging
Move `pkg/kubelet/kuberuntime/logs` to `k8s.io/cri-client` staging
2024-05-30 13:26:01 -07:00
Kubernetes Prow Robot
b503409e9c
Merge pull request #124363 from claudiubelu/unittests-11
unittests: Fixes unit tests for Windows (part 11)
2024-05-30 08:17:24 -07:00
Kubernetes Prow Robot
fc6c7d743d
Merge pull request #124069 from carlory/clean-100000
fix ProbeControllerVolumePlugins func
2024-05-30 08:17:15 -07:00
Kubernetes Prow Robot
72226c7511
Merge pull request #123315 from bart0sh/PR134-graduate-DevicePluginCDIDevices-to-GA
Graduate DevicePluginCDIDevices to GA
2024-05-30 08:17:06 -07:00
Kubernetes Prow Robot
c811521331
Merge pull request #112104 from oldium/fix-windows-editor-launch
Fix editor launch with Windows cmd.exe when KUBE_EDITOR has spaces in path
2024-05-30 08:16:52 -07:00
Kubernetes Prow Robot
2acdbae664
Merge pull request #125178 from my-git9/unusedfunction
kubeadm: remove some unused function
2024-05-30 06:47:02 -07:00
Kubernetes Prow Robot
36f1d73c1f
Merge pull request #123440 from Ritikaa96/kubectl-improve-get
Improving kubectl get output
2024-05-30 06:46:48 -07:00
Sascha Grunert
0c9949b6ec
Move pkg/kubelet/kuberuntime/logs to k8s.io/cri-client staging
Particulary helpful to decouple cri-tools from k/k.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-30 15:13:22 +02:00
Kubernetes Prow Robot
2c46fafa23
Merge pull request #125150 from humblec/csi-update
update CSI spec to v1.9.0 which has modifyVolume API support and other updated libraries in place
2024-05-30 05:13:48 -07:00
Dan Winship
d01b264345 Improve LoadBalancerSourceRanges test
The existing test had two problems:

  - It only made connections from within the cluster, so for VIP-type
    LBs, the connections would always be short-circuited and so this
    only tested kube-proxy's LBSR implementation, not the cloud's.

  - For non-VIP-type LBs, it would only work if pod-to-LB connections
    were not masqueraded, which is not the case for most network
    plugins.

Fix this by (a) testing connectivity from the test binary, so as to
test filtering external IPs, and ensure we're testing the cloud's
behavior; and (b) using both pod and node IPs when testing the
in-cluster case.

Also some general cleanup of the test case.
2024-05-30 07:24:36 -04:00
Kubernetes Prow Robot
bce55b94cd
Merge pull request #125212 from saschagrunert/kubeadm-runtime-ready
kubeadm: check only for `RuntimeReady` condition
2024-05-30 00:46:07 -07:00
Sascha Grunert
51a36294a3
kubeadm: check only for RuntimeReady condition
We only check for the `RuntimeReady` condition instead of anything else
like the `NetworkReady` to allow kubeadm to provision the cluster.

Refers to https://github.com/kubernetes/kubernetes/pull/124685#issuecomment-2138655482
Follow-up on: https://github.com/kubernetes/kubernetes/pull/124685

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-30 08:33:22 +02:00
Ritikaa96
b9ec8b3c46 correcting description as per review
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
2024-05-30 11:53:02 +05:30
Kubernetes Prow Robot
957c953867
Merge pull request #118148 from linxiulei/sched_readyz
Expose /readyz & /livez in kube-scheduler
2024-05-29 22:09:17 -07:00
Humble Chirammal
d87bfc8392 update ip-masq-agent and npd to latest versions in cluster addons
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-30 09:44:02 +05:30
Kubernetes Prow Robot
83c2db067e
Merge pull request #125179 from SataQiu/clean-20240528
kubeadm: only add the klog flags that are still supported for kubeadm, rather than disabling the unwanted flags
2024-05-29 20:14:55 -07:00
Kubernetes Prow Robot
9a44f68916
Merge pull request #123974 from p0lyn0mial/upstream-client-go-features-testing
client-go/features/testing: intro SetFeatureGatesDuringTest
2024-05-29 17:01:25 -07:00
Kubernetes Prow Robot
f44bb5e6e5
Merge pull request #125176 from mauri870/feature/testing-MainStart-go1.23
pkg/util/coverage: update fakeTestDeps methods
2024-05-29 15:40:38 -07:00
Shingo Omura
552fd7e850
KEP-3619: Fine-grained SupplementalGroups control (#117842)
* Add `Linux{Sandbox,Container}SecurityContext.SupplementalGroupsPolicy` and `ContainerStatus.user` in cri-api

* Add `PodSecurityContext.SupplementalGroupsPolicy`, `ContainerStatus.User` and its featuregate

* Implement DropDisabledPodFields for PodSecurityContext.SupplementalGroupsPolicy and ContainerStatus.User fields

* Implement kubelet so to wire between SecurityContext.SupplementalGroupsPolicy/ContainerStatus.User and cri-api in kubelet

* Clarify `SupplementalGroupsPolicy` is an OS depdendent field.

* Make `ContainerStatus.User` is initially attached user identity to the first process in the ContainerStatus

It is because, the process identity can be dynamic if the initially attached identity
has enough privilege calling setuid/setgid/setgroups syscalls in Linux.

* Rewording suggestion applied

* Add TODO comment for updating SupplementalGroupsPolicy default value in v1.34

* Added validations for SupplementalGroupsPolicy and ContainerUser

* No need featuregate check in validation when adding new field with no default value

* fix typo: identitiy -> identity
2024-05-29 15:40:29 -07:00
Ben Luddy
d7cccf3e79
Update indirect dependencies with ./hack/update-vendor.sh.
Implementing custom marshaling on several API types for CBOR makes the upstream CBOR library an
indirect dependency of several staging modules.
2024-05-29 17:50:21 -04:00
Ben Luddy
0600269c1a
Fuzz roundtrip to Unstructured via both JSON and CBOR. 2024-05-29 17:48:10 -04:00
Ben Luddy
d2dfce59ff
Implement cbor.Marshaler and cbor.Unmarshaler for resource.Quantity. 2024-05-29 17:48:10 -04:00
Ben Luddy
14367eee5a
Implement cbor.Marshaler and cbor.Unmarshaler for metav1.MicroTime. 2024-05-29 17:48:10 -04:00
Ben Luddy
7b3129e015
Implement cbor.Marshaler and cbor.Unmarshaler for metav1.Time. 2024-05-29 17:48:09 -04:00
Ben Luddy
d93a9121b8
Implement cbor.Marshaler and cbor.Unmarshaler for IntOrString. 2024-05-29 17:48:09 -04:00
Kubernetes Prow Robot
ee2c1ffa80
Merge pull request #124630 from carlory/fix-123731
DRA: scheduler: index claim and class parameters to simplify lookup
2024-05-29 14:38:14 -07:00
Kubernetes Prow Robot
e821e4f978
Merge pull request #125200 from soltysh/fix_typo
Fix the field typo in statefulset patch operation
2024-05-29 13:06:15 -07:00
Kubernetes Prow Robot
4c0afd74c3
Merge pull request #125113 from bzsuni/bz/build/cni
update cni from 1.4.1 to 1.5.0
2024-05-29 13:06:08 -07:00
Kubernetes Prow Robot
1ebc3d2a64
Merge pull request #120699 from liyuerich/ptrderefcontroller
drop deprecated pointer package in controller
2024-05-29 10:12:36 -07:00
Maciej Szulik
23bf694830
Fix the field typo in statefulset patch operation 2024-05-29 18:55:35 +02:00
Mauri de Souza Meneguzzo
b8e5a3ed32 pkg/util/coverage: update fakeTestDeps methods
Go 1.23 changed the signature of the testDeps interface so we need to
add a blank implementation for InitRuntimeCoverage to fakeTestDeps.
2024-05-29 12:31:22 -03:00
Kubernetes Prow Robot
1cfaa95cab
Merge pull request #124898 from alexzielenski/apiserver/prerelease-ga-tags
Require prerelease lifecycle tags on GA types
2024-05-29 08:02:42 -07:00
Kubernetes Prow Robot
da02fdb2ae
Merge pull request #123339 from skitt/canonical-json-patch
Update kustomize, use canonical json-patch v4 import
2024-05-29 08:02:24 -07:00
Kubernetes Prow Robot
ea0ab06b69
Merge pull request #125190 from pohly/record-event-panic
client-go record: avoid panic when watch creation failed
2024-05-29 06:20:33 -07:00
Patrick Ohly
080432c46a client-go record: avoid panic when watch creation failed
The previous attempt to fix this in
6aa779f4ed (diff-efa2cd1347df22ace5a516ea794152d00ef2a079db135c81787ed920ecb73658)
didn't address the root cause (or perhaps created it, not sure): the goroutine
must not be started if watch creation failed.

Instead, the error gets logged (as before) and an empty watch gets returned to
the caller (new). This is necessary because the function doesn't have an error
return value and changing that now would be disruptive. The empty watch is
valid and usable, so callers won't crash when they calls Stop.

This showed up recently in failed unit tests, probably because test
cancellation makes this error more likely:

   "Unable start event watcher (will not retry!)" err="broadcaster already
   stopped" logger="TestGarbageCollectorConstruction leaked goroutine"

The logger value and a preceding warning show that this occurs after test
completion.
2024-05-29 14:10:49 +02:00
Kubernetes Prow Robot
529896474f
Merge pull request #124688 from neolit123/1.31-always-rotate-etcd-certs-on-upgrade
kubeadm: ensure that etcd certs are rotated on apiserver upgrade
2024-05-29 05:10:30 -07:00
Lukasz Szaszkiewicz
ba89ae3ddf e2e/apimachinery/watchlist: uses SetFeatureDuringTest 2024-05-29 12:45:18 +02:00
Kubernetes Prow Robot
afebfdc5d4
Merge pull request #125158 from mttrb/kubeadm-grammar
Fix grammar in kubeadm output
2024-05-29 03:30:45 -07:00
Kubernetes Prow Robot
3833d37b28
Merge pull request #124685 from saschagrunert/kubeadm-crictl
Make `kubeadm` independent from `crictl`
2024-05-29 03:30:31 -07:00
Lubomir I. Ivanov
f4d5e1d65d kubeadm: ensure that etcd certs are rotated on apiserver upgrade
Currently if etcd.yaml does not have a diff on "kubeadm upgrade"
certificate renewal for it is also skipped.

Check if kube-apiserver.yaml needs an upgrade, if so and if
cert renewal is not disabled, renew etcd's certs and restart
its static pod.
2024-05-29 13:07:41 +03:00
Kubernetes Prow Robot
1d5589e491
Merge pull request #125159 from p0lyn0mial/upstream-add-data-consistency-checker-for-list-requests
client-go/util/consistencydetector: add CheckListFromCacheDataConsistencyIfRequested
2024-05-29 02:00:58 -07:00
Lukasz Szaszkiewicz
48014bd7bd client-go/util/consistencydetector: add CheckListFromCacheDataConsistencyIfRequested 2024-05-29 09:26:12 +02:00
Sascha Grunert
7d1bfd9872
Make kubeadm independent from crictl
With the new `cri-client` staging repository it's finally possible to
decouple `kubeadm` from `crictl`.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-29 08:58:01 +02:00
Kubernetes Prow Robot
7ba244f50e
Merge pull request #125131 from ah8ad3/auth-cani-approve
Add approve as a valid verb in can-i
2024-05-28 23:33:36 -07:00
SataQiu
7f30b3494b kubeadm: only add the klog flags that are still supported for kubeadm, rather than disabling the unwanted flags 2024-05-29 12:38:21 +08:00
xin.li
7771a58b46 kubeadm: remove some unused function
Signed-off-by: xin.li <xin.li@daocloud.io>
2024-05-29 11:26:36 +08:00
Kubernetes Prow Robot
bc8ec4f9aa
Merge pull request #125166 from p0lyn0mial/upstream-improve-check-data-consistency
client-go/util/consistencydetector: improve validation of list parameters (RV, ListOptions)
2024-05-28 13:58:53 -07:00