Commit Graph

134908 Commits

Author SHA1 Message Date
Tim Allclair
36e3a8f269 Record and require all kube-feature dependencies 2025-10-15 10:29:15 -07:00
Jordan Liggitt
20af32e5c1 Stop serving alphas removed in 1.35 2025-10-15 12:59:59 -04:00
Jordan Liggitt
33321022f8 Regenerate openapi with unserved 1.35 APIs 2025-10-15 12:59:44 -04:00
Christian Schlotter
bec429cd96 Review fixes 2025-10-15 18:57:34 +02:00
Patrick Ohly
ac5046786e DRA API: implement ResourceClaim and ResourceClaimTemplate strategy for DRADeviceTaints
This wasn't possible at the time of implementing the Device Taints API, at
least not completely, because it depended on prioritized list being merged
first, to cover the "FirstAvailable" field introduced together with that
feature.

That the device taints PR got merged despite this gap was an oversight. The
confusing TODO probably didn't help: the entire implementation was missing (or
got lost due to a bad merge conflict resolution, not sure anymore) and it
referenced the wrong other feature (partitionable devices doesn't affect
ResourceClaim).

For some reason, ResourceClaimTemplate update testing was less complete than
the update testing of ResourceClaim. Fixed by copying the entire
TestStrategyUpdate over and switching it to testing ResourceClaimTemplates.
2025-10-15 15:44:55 +02:00
Kubernetes Prow Robot
4870d987d0 Merge pull request #134611 from cpanato/update-go-main
[go] Bump images, dependencies and versions to go 1.25.3 and distroless iptables
2025-10-15 05:59:42 -07:00
Kubernetes Prow Robot
95fcceb90c Merge pull request #134388 from nokia/kep-4540-ga
KEP-4540: StrictCPUReservationOption moved to GA
2025-10-15 05:59:35 -07:00
Christian Schlotter
8a43852c35 build: build by running kube-cross directly should leverage a potential KUBE_GIT_VERSION_FILE 2025-10-15 13:48:00 +02:00
Rodrigo Campos
2a488616bf tests/e2e_node: Add test for userNamespaces.idsPerPod
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2025-10-15 19:49:38 +09:00
Rodrigo Campos
b38d702807 userns: Return nil manager if feature disabled
Golang allows to call methods on a nil object, as long as the methods
don't dereference the nil object. This is what we do here.

This makes all the userns configurations (idsPerPod or mapping configs
in /etc/subuid or /etc/subgid) to be ignored if the feature is off.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-10-15 19:49:38 +09:00
Rodrigo Campos
0b5aa1d491 userns: Use better defaults if idsPerPod are used
The first UID used for userns mappings needs to be at least the
idsPerPod. When idsPerPod is extended to be 65536*2, for example, then
the default UID of 65536 doesn't work.

While this can be configured by the user, let's just improve the default
first UID to be the same as idsPerPod. This makes the default first UID
work out of the box if the user just wants to tune that.

This also simplifies testing, as we don't need to create a system user
and /etc/subuid and /etc/subgid files to test the idsPerPod setting.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-10-15 19:49:38 +09:00
Rodrigo Campos
db6a2b2318 kubelet: Don't ignore idsPerPod config
The idsPerPod where completely ignored since they were introduced in PR:
	https://github.com/kubernetes/kubernetes/pull/130028

The problem was the following:
	1. The userns manager (as well as all managers) is created
	   before the config is copied to the kubelet object[1]
	2. The userns manager on creation is calling the kubelet_getter
	   GetUserNamespacesIDsPerPod to get the idsPerPod
	3. The getter checks the configuration stored in the kubelet
	   object, which hasn't been set at that point.
	4. As the config is nil (unset), it returns the default value.

Therefore, the value was ignored.

To solve this, let's just pass the idsPerPod as a parameter to
MakeUserNsManager(). This is the common pattern already used in the
kubelet initialization.

[1]: 461ba83084/pkg/kubelet/kubelet.go (L1078-L1087)
[2]: 461ba83084/pkg/kubelet/kubelet_getters.go (L145)

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-10-15 19:49:34 +09:00
Francesco Romani
97861325ae KEP-4622: node: topomgr: max-allowable-numa-nodes to GA
promote the policy option to GA.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-10-15 12:21:04 +02:00
Francesco Romani
cccb66bfbc test: topologymanager: handle panic in test
unexpected success should cause a test failure, not a panic

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-10-15 12:20:57 +02:00
Francesco Romani
00a8ddce91 node: topologymanager: don't leak options in tests
unit tests for the policy options add test options to the
global state without proper cleanup; this is done only in tests
so it has limited room for doing damage, but still weakens
the test signal. Let's avoid that adding proper cleanup.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-10-15 12:15:08 +02:00
Kubernetes Prow Robot
b35220c725 Merge pull request #134608 from tallclair/disable-allocator-dual-write-2
Fix DisableAllocatorDualWrite dependency on MultiCIDRServiceAllocator
2025-10-15 01:53:41 -07:00
Kubernetes Prow Robot
48453a6eec Merge pull request #134174 from phuhung273/topologymanager-contextual-logging
kubelet: Migrate pkg/kubelet/cm/topologymanager to contextual logging
2025-10-15 01:53:34 -07:00
Carlos Panato
96a9fe5f7b update debian-base and setcap
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-10-15 09:42:15 +02:00
Carlos Panato
15154374bc Bump images, dependencies and versions to go 1.25.3 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-10-15 09:41:57 +02:00
Tsubasa Nagasawa
476824c2a1 [PodLevelResources] Add more comprehensive test cases to kubelet
Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2025-10-15 10:50:21 +09:00
Kubernetes Prow Robot
e21082468a Merge pull request #134381 from kon-angelo/openapi-nil-json
fix nested map segmentation fault
2025-10-14 18:21:32 -07:00
Tim Allclair
bf88ae7d73 Fix DisableAllocatorDualWrite dependency on MultiCIDRServiceAllocator 2025-10-14 17:22:19 -07:00
Lalit Chauhan
d0f482129d Add stability level in the tags doc. 2025-10-14 22:47:31 +00:00
Varun Ramachandra Sekar
4d1ed68946 helper function to standardize the PCIBusID device attribute for DRA drivers
Signed-off-by: Varun Ramachandra Sekar <vsekar@nvidia.com>
2025-10-14 15:04:06 -07:00
Kubernetes Prow Robot
9d5cda7a21 Merge pull request #134598 from BenTheElder/go1.25.3
bump to go 1.25.3
2025-10-14 14:23:41 -07:00
Kubernetes Prow Robot
c5f15cc37a Merge pull request #133721 from fusida/fix-crd-status-panic-0827
fix panic for the crd with subresource but lose openAPIV3Schema
2025-10-14 14:23:34 -07:00
Shyam Jeedigunta
678b79a173 Properly account APF seats for legacy watches that compute init-events 2025-10-14 13:30:30 -07:00
Kubernetes Prow Robot
9630ab9581 Merge pull request #134510 from BenTheElder/no-rsync
build by running kube-cross directly
2025-10-14 11:37:40 -07:00
Kubernetes Prow Robot
d92afdefcb Merge pull request #134298 from kannon92/kep-5573-cgroupv1-unsupported
[KEP-5573] Set failCgroupV1 to true
2025-10-14 11:37:34 -07:00
Benjamin Elder
6f820481d3 bump to go 1.25.3 2025-10-14 10:44:59 -07:00
Kubernetes Prow Robot
3955220f84 Merge pull request #132600 from nojnhuh/cel-godoc
Fix CEL library doc string whitespace
2025-10-14 09:13:35 -07:00
Kubernetes Prow Robot
f7fb7cd86b Merge pull request #134588 from liggitt/fixes-only-no-go-bump
go 1.25.2/1.24.8 related fixes
2025-10-14 07:45:36 -07:00
zhangzhifei16
84b78307e2 fix: the failed unit test 2025-10-14 22:01:35 +08:00
Ed Bartosh
4c8b434779 DRA: Fix socket binding error in unit tests
Fixes TestConnectionHandling/no-wipe-on-reconnect which was failing with
"Only one usage of each socket address is normally permitted" because the
teardown function wasn't waiting for the gRPC server to fully shut down
before returning, causing socket cleanup issues in subsequent test runs.

The fix ensures proper synchronization during server shutdown so that the
Unix socket is fully released before the teardown completes. This prevents
socket binding conflicts when tests run in sequence.
2025-10-14 16:26:07 +03:00
gujiu.fsd
6a455c669b fix panic for the crd with status subresource but lose openAPIV3Schema fileds 2025-10-14 20:26:55 +08:00
Dan Winship
da338ba1ff Warn on use of deprecated PreferClose 2025-10-14 08:24:21 -04:00
Dan Winship
3176ef2760 Update TrafficDistribution docs for PreferSame* GA 2025-10-14 08:24:21 -04:00
Dan Winship
c6a86d125f Merge the two TrafficDistribution integration tests 2025-10-14 08:24:19 -04:00
Dan Winship
02926c9563 Update PreferSameTrafficDistribution to GA 2025-10-14 08:20:43 -04:00
Dan Winship
b13564a63c Belatedly remove references to PreferSameTrafficDistribution being Alpha 2025-10-14 08:18:05 -04:00
phuhung273
7ed61cfde1 chore(kubelet): migrate topologymanager to contextual logging 2025-10-14 18:32:20 +07:00
Goend
c48a16ebd8 fix issue 2025-10-14 18:59:23 +08:00
Goend
e9f66ea507 fix 2025-10-14 16:19:27 +08:00
Goend
dfb02e7581 add TestUpdateStatusWithOldVersion integration case 2025-10-14 14:45:22 +08:00
Kubernetes Prow Robot
9b9cd768a0 Merge pull request #134516 from ramzeng/hotfix/ipallocator
fix: Add CIDR filtering and overflow protection to IP allocator
2025-10-13 21:47:34 -07:00
Kubernetes Prow Robot
5277a104e6 Merge pull request #134496 from yongruilin/master_vg-rc-unique
feat(DRA): migrate list uniqueness to declarative validation
2025-10-13 20:37:33 -07:00
Kubernetes Prow Robot
c48da291ae Merge pull request #134560 from zk-123/style/kuberruntime_container
style(kuberuntime-container): clean up redundant if branches
2025-10-13 19:13:34 -07:00
曾是然
0554102ab3 test: Add CIDR allocator metrics test with multiple CIDRs 2025-10-14 01:59:34 +00:00
Jordan Liggitt
3c2c64a7f6 Add integration test for invalid SAN certificate handling 2025-10-13 20:22:05 -04:00
Kubernetes Prow Robot
7d87691fe3 Merge pull request #134558 from yongruilin/master_vg-rcstatus-maxitem
feat(validation): add k8s:update & migrate ResourceClaimStatus maxItem validation to declarative
2025-10-13 16:29:33 -07:00