Commit Graph

128659 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
bff54e4020
Merge pull request #130013 from yongruilin/crd-racheting-ga
KEP-4008: promote CRDValidationRatcheting to GA
2025-02-18 18:08:25 -08:00
Sean Sullivan
3100bbab2f Update gorilla/websockets library from 1.5.0 to latest 1.5.3 2025-02-19 00:26:21 +00:00
Kubernetes Prow Robot
0e3a247859
Merge pull request #130083 from elizabeth-dev/replace-network-e2e-replicationcontrollers-5
test(network): replace calls to e2erc.RunRC with Deployments in SIG Network tests
2025-02-18 15:06:26 -08:00
Kubernetes Prow Robot
0d996fee31
Merge pull request #130202 from SataQiu/fix-20250216
kubeadm: fix panic when no UpgradeConfiguration was found in the config file
2025-02-18 13:24:33 -08:00
Kubernetes Prow Robot
c38aad07a8
Merge pull request #130186 from tallclair/resize-status-cache
Move PodResizeStatus cache out of allocated state
2025-02-18 13:24:26 -08:00
Kubernetes Prow Robot
821bc2e15e
Merge pull request #130128 from adrianmoisey/bump-kep-4427-to-beta
Bump KEP-4427 : AllowRelaxedDNSSearchValidation to Beta
2025-02-18 12:10:34 -08:00
Kubernetes Prow Robot
4f925a63a0
Merge pull request #130098 from danwinship/deprecate-endpoints
Mark v1.Endpoints deprecated
2025-02-18 12:10:26 -08:00
Kubernetes Release Robot
72b404f6aa CHANGELOG: Update directory for v1.33.0-alpha.2 release 2025-02-18 18:58:13 +00:00
Tim Allclair
3f4ef42e9a Move PodResizeStatus cache out of allocated state 2025-02-18 09:19:23 -08:00
Jan Safranek
d3eb639313 selinux: add tests for SELinuxController
Squeeze them into existing kubelet metric tests. The tests would have very
similar setup + cleanup.
2025-02-18 17:44:13 +01:00
Elizabeth Martin Campos
e15fd43d81
test(network): replace calls to e2erc.RunRC with Deployments in service latency tests
See #119021
2025-02-18 17:42:00 +01:00
Elizabeth Martin Campos
cd0df9786e
test(network): replace calls to e2erc.RunRC with Deployments in service proxying tests
See #119021
2025-02-18 17:41:12 +01:00
Rodrigo Campos
7deb49e3a6 Revert "Enforce the Minimum Kernel Version 6.3 for UserNamespacesSupport feature"
This reverts commit 8597b343fa.

I wrote in the Kubernetes documentation:

	In practice this means you need at least Linux 6.3, as tmpfs started
	supporting idmap mounts in that version. This is usually needed as
	several Kubernetes features use tmpfs (the service account token that is
	mounted by default uses a tmpfs, Secrets use a tmpfs, etc.)

The check is wrong for several reasons:
	* Pods can use userns before 6.3, they will just need to be
	  careful to not use a tmpfs (like a serviceaccount). MOST users
	  will probably need 6.3, but it is possible to use earlier kernel
	  versions. 5.19 probably works fine and with improvements in
          the runtime 5.12 can probably be supported too.
	* Several distros backport changes and the recommended way is
	  usually to try the syscall instead of testing kernel versions.
	  I expect support for simple fs like tmpfs will be backported
	  in several distros, but with this check it can generate confusion.
	* Today a clear error is shown when the pod is created, so it's
	  unlikely a user will not understand why it fails.
	* Returning an error if utilkernel fails to understand what
	  kernel version is running is also too strict (as we are
	  logging a warning even if it is not the expected version)
	* We are switching to enabled by default, which will log a
	  warning on every user that runs on an older than 6.3 kernel,
	  adding noise to the logs.

For there reasons, let's just remove the hardcoded kernel version check.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-02-18 17:24:50 +01:00
Rodrigo Campos
a2eeec5c5a Revert "Switch hard error to a WARNING for kernel version check"
This reverts commit fd06dcd604.

The revert is not to make it a hard error again, this revert is needed
to revert cleanly the commit that added this as an error in the first
place.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-02-18 17:24:25 +01:00
Kubernetes Prow Robot
9a2a278a20
Merge pull request #130162 from carlory/remove-cloud-provider-and-cloud-config-in-apiserver-CLI
kube-apiserver: removed the deprecated the `--cloud-provider` and `--cloud-config` CLI parameters.
2025-02-18 08:00:38 -08:00
Kubernetes Prow Robot
fc876787b8
Merge pull request #130126 from fuweid/fix-128314
proxy: should add PingPeriod for websocket translator
2025-02-18 08:00:26 -08:00
SataQiu
9315ddbb65 kubeadm: fix panic when no UpgradeConfiguration was found in the config file 2025-02-18 22:49:40 +08:00
Maciej Szulik
de984ec9b9
Update kubetl subresource to stable
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-02-18 14:28:59 +01:00
Jan Safranek
992c8e9479 selinux: explicitly specify NodeMetrics in function names
This is just refactoring / renaming.

The SELinux e2e tests grab node metrics so far, so mention `Node` in the
function names. Kube-controller-metrics will follow in a subsequent commit.
2025-02-18 11:48:36 +01:00
Nadia Pinaeva
7d5f3c5723 [kube-proxy:nftables] Read map/set elements on setup.
We used to flush and re-add all map/set elements on nftables
setup, but it is faster to read the existing elements and only
transact the diff.

Signed-off-by: Nadia Pinaeva <npinaeva@redhat.com>
2025-02-18 11:28:41 +01:00
Marek Siarkowicz
26fe6bc6e0 Add tests for encoding collections in JSON for KEP-5116
Used test cases from:
* Original PR https://github.com/kubernetes/kubernetes/pull/129334
* KEP https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/5116-streaming-response-encoding#unit-tests

For now testing current serializer implementation to show encoder
behavior and agree on set of tests. Having a separate PR should make review easier.
In separate PR will add the implementation for streaming that should
provide same response byte-to-byte.
2025-02-18 10:19:23 +01:00
Francesco Romani
323410664c e2e: node: cpumgr: check CPU allocatable for CFS quota test
add (admittedly pretty crude) CPU allocatable check.
A more incisive refactoring is needed, but we need
to unbreak CI first, so this seems the minimal decently clean test.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-02-18 10:04:57 +01:00
Kubernetes Prow Robot
931ad2a9fd
Merge pull request #130108 from carlory/cleanup-after-81245
remove NodeOSDistroIs from test/e2e/framework/pod
2025-02-18 00:12:12 -08:00
andyzhangx
bb49a05fb5 fix: adopt go1.23 behavior change in mount point parsing on Windows
fix comments
2025-02-18 07:17:51 +00:00
Kubernetes Prow Robot
7e33d428ab
Merge pull request #130224 from googs1025/chore/remove_taint_score
chore(scheduler): remove unnecessary check for node is zero in scheduler plugins
2025-02-17 20:20:12 -08:00
googs1025
004c5f5a39 chore: remove unnecessary check for node is zero 2025-02-18 10:24:26 +08:00
nkeert
45e2f3e438 Add a test to validate deferredResponseWriteron multiple write calls
Signed-off-by: nkeert <197718357+nkeert@users.noreply.github.com>
2025-02-18 05:23:23 +05:30
Kubernetes Prow Robot
d1126b66cb
Merge pull request #130037 from jsafrane/selinux-controller-translator
selinux: add a new SELinux translator to the controller
2025-02-17 13:06:12 -08:00
Maciej Szulik
a36f64e074
Add more log information to help debug flake #129779
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-02-17 18:13:20 +01:00
Jan Safranek
2050d6fc69 selinux: add a new SELinux translator to the controller
A real SELinuxOptionsToFileLabel function needs access to host's
/etc/selinux to read the defaults. This is not possible in
kube-controller-manager that often runs in a container and does not have
access to /etc on the host. Even if it had, it could run on a different
Linux distro than worker nodes.

Therefore implement a custom SELinuxOptionsToFileLabel that does not
default fields in SELinuxOptions and uses just fields provided by the Pod.

Since the controller cannot default empty SELinux label components,
treat them as incomparable.
Example: "system_u:system_r:container_t:s0:c1,c2" *does not* conflict with ":::s0:c1,c2",
because the node that will run such a Pod may expand "":::s0:c1,c2" to "system_u:system_r:container_t:s0:c1,c2".
However, "system_u:system_r:container_t:s0:c1,c2" *does* conflict with ":::s0:c98,c99".
2025-02-17 13:32:10 +01:00
Kubernetes Prow Robot
2b3da7dfc8
Merge pull request #130193 from kei01234kei/modify_comment_of_SchedulerCacheSize_field
modify SchedulerCacheSize field comment because it will be removed at v1.34
2025-02-17 04:08:29 -08:00
Kubernetes Prow Robot
1b79b8952a
Merge pull request #129997 from carlory/HonorPVReclaimPolicy-e2e
HonorPVReclaimPolicy: add more e2e tests
2025-02-17 04:08:22 -08:00
Kubernetes Prow Robot
2527854078
Merge pull request #130178 from bart0sh/PR172-e2e-fix-websockets-conformance
e2e: fix node conformance flake
2025-02-17 02:08:33 -08:00
Kubernetes Prow Robot
e279ae4335
Merge pull request #129852 from p0lyn0mial/upstream-clock-test-cache
cacher: decrease the running time of TestConsistentReadFallback
2025-02-17 02:08:21 -08:00
carlory
c48499d360 fix ci
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-17 11:49:24 +08:00
carlory
2382c0125b remove Removed generally available feature-gate DisableCloudProviders and DisableKubeletCloudCredentialProviders
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-17 09:59:59 +08:00
carlory
29e5d42979 kube-apiserver: removed the deprecated the --cloud-provider and --cloud-config CLI parameters.
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-17 09:54:49 +08:00
Kubernetes Prow Robot
87fcae2bc7
Merge pull request #130204 from aroradaman/conntrack-count-metric
kube-proxy: metric to track entries deleted in conntrack reconciliation
2025-02-16 15:14:21 -08:00
Kubernetes Prow Robot
1e38c86893
Merge pull request #129996 from yongruilin/fix-flag-apiserver
fix: apiserver flagz to response actual parsed flags
2025-02-16 13:56:23 -08:00
Daman Arora
438df173e3 kube-proxy: metric to track entries deleted in conntrack reconciliation
kubeproxy_conntrack_reconciler_deleted_entries_total can be used
to track total entries deleted in conntrack reconciliation.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-02-17 00:06:20 +05:30
Kubernetes Prow Robot
e7b03ea0d3
Merge pull request #130080 from elizabeth-dev/replace-network-e2e-replicationcontrollers-2
test(network): replace RCs with Deployments in util function StartServeHostnameService
2025-02-16 09:44:21 -08:00
YamasouA
fcce8aaad8 workloadExecutor's member use value not pointer 2025-02-16 23:42:20 +09:00
Kubernetes Prow Robot
edc1fd24cc
Merge pull request #130081 from elizabeth-dev/replace-network-e2e-replicationcontrollers-3
test(network): replace RCs with Deployments in util function CreateServicePods
2025-02-16 06:00:21 -08:00
Elizabeth Martin Campos
e353086e6a
test(network): replace RCs with Deployments in util function StartServeHostnameService
See #119021
2025-02-16 14:50:46 +01:00
Kubernetes Prow Robot
05ab777e28
Merge pull request #130200 from aroradaman/conntrack-duration-metric
kube-proxy: metric to track conntrack reconciliation latency
2025-02-16 03:50:22 -08:00
Daman Arora
bdd83038e8 kube-proxy: metric to track conntrack reconciliation latency
kube_proxy_conntrack_reconciler_sync_duration_seconds can be used
to track the latency of conntrack flow reconciliation.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-02-16 13:51:40 +05:30
Elizabeth Martin Campos
98d600bef9
test(network): replace RCs with Deployments in util function CreateServicePods
See #119021
2025-02-15 22:09:55 +01:00
Kubernetes Prow Robot
4e7e14203d
Merge pull request #130105 from seans3/websocket-logging-level
Update websocket logging levels for better debuggability
2025-02-15 07:44:28 -08:00
Kubernetes Prow Robot
78f7217993
Merge pull request #130082 from elizabeth-dev/replace-network-e2e-replicationcontrollers-4
test(network): replace RCs with Deployments in util function jig.Run
2025-02-15 07:44:21 -08:00
Keisuke Ishigami
6b16f05148 modify SchedulerCacheSize field comment because it will be removed at v1.34 2025-02-15 17:50:41 +09:00