Commit Graph

53950 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
76f5a1c8c2 Merge pull request #134635 from vivzbansal/execprobe1
Locked the (generally available) feature gate `ExecProbeTimeout` to true.
2025-10-17 18:06:40 -07:00
Lalit Chauhan
2072acb3ba Add listType=map and listMapekeys on ResourceClaimStatus.Devices 2025-10-17 22:48:52 +00:00
Kubernetes Prow Robot
2158dd67e9 Merge pull request #134630 from lalitc375/k8s-enum
feat: add enum validation for AllocationConfigSource
2025-10-17 15:40:51 -07:00
Kubernetes Prow Robot
9dcfb3d04b Merge pull request #133373 from AkihiroSuda/carry-133278
[Carry 133278] kubelet: Don't ignore idsPerPod config #133278
2025-10-17 15:40:43 -07:00
Lalit Chauhan
1f803aa314 Use DV for long name validation of spec.devices.requests[%d].firstAvailable[%d].deviceClassName 2025-10-17 19:15:34 +00:00
Kubernetes Prow Robot
4bb072512e Merge pull request #134446 from aaron-prindle/dv-device-allocation-mode-enum-migration
feat: add +k8s:enum declarative validation to ResourceClaim DeviceAllocationMode
2025-10-17 11:54:41 -07:00
Vivek Bansal
af17392630 Setting the default feature-gate ExecProbeTimeout value to TRUE 2025-10-17 18:38:05 +00:00
Aaron Prindle
2fd727bf92 address feedback - comment on declarative defaulting gap w/ DV 2025-10-16 22:47:22 +00:00
Kubernetes Prow Robot
aefb388c7d Merge pull request #134654 from liggitt/unexport-orphan
Include relevant dimensions in pod controller indexing
2025-10-16 13:02:40 -07:00
Kubernetes Prow Robot
7af016ec31 Merge pull request #133153 from helayoty/helayoty/enable-beta-maxUnavailable
Update MaxUnavailableStatefulSet feature gate to beta
2025-10-16 12:04:50 -07:00
Kubernetes Prow Robot
50e3cb3f58 Merge pull request #133128 from jm-franc/set-gate-to-beta
Promote HPAConfigurableTolerance gate to beta
2025-10-16 12:04:43 -07:00
Kubernetes Prow Robot
e066b3850f Merge pull request #133912 from tallclair/kube-feature-deps
Mark all Kube feature dependencies, and require dependencies to be declared for all features
2025-10-16 11:14:43 -07:00
Aaron Prindle
9d83f71cde fix validation_test.go to use path normalization 2025-10-16 17:40:19 +00:00
Aaron Prindle
a77f845141 address feedback - remove origin for enum as NotSupported handles this 2025-10-16 17:40:19 +00:00
Aaron Prindle
6e95412c43 address nit 2025-10-16 17:40:19 +00:00
Aaron Prindle
77d87a0e63 fix normalization rule post-rebase 2025-10-16 17:40:19 +00:00
Aaron Prindle
f84423813b address feedback 2025-10-16 17:40:19 +00:00
Aaron Prindle
9a7dace734 feat: add +k8s:enum declarative validation to ResourceClaim DeviceAllocationMode 2025-10-16 17:40:18 +00:00
Jordan Liggitt
91d135f344 Include relevant dimensions in pod controller indexing 2025-10-16 13:27:50 -04:00
Kubernetes Prow Robot
2453394c0a Merge pull request #134267 from zk-123/optimization/serviceaccount-token-controller
refactor(serviceaccount-tokens-controller): Change MutationCache to SecretLister
2025-10-16 00:15:37 -07:00
Lalit Chauhan
9020a17731 feat: add enum validation for AllocationConfigSource
This commit introduces enum-based validation for the `AllocationConfigSource` field.

The following changes are included:
- The `AllocationConfigSource` type is now marked with `+k8s:enum`.
- The `Source` field in `DeviceAllocationConfiguration` is marked as required.
- Generated validation files are updated to enforce the enum constraint.
- A declarative validation test is added for the `AllocationConfigSource` field.
2025-10-16 04:28:14 +00:00
Kubernetes Prow Robot
02e576064f Merge pull request #134614 from ffromani/topomgr-max-allowable-nodes-ga
KEP-4622: promote topology manager `max-allowable-numa-nodes` to GA
2025-10-15 18:43:41 -07:00
Tim Allclair
debe026b21 Fix unit tests to work with explicit depndencies 2025-10-15 15:04:26 -07:00
Kubernetes Prow Robot
6298c4e6ab Merge pull request #134626 from lalitc375/status
Test DV status update tests for all API versions
2025-10-15 14:41:36 -07:00
Lalit Chauhan
54f39033f0 Test status update for all APII versions 2025-10-15 18:11:48 +00:00
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
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
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
Tim Allclair
bf88ae7d73 Fix DisableAllocatorDualWrite dependency on MultiCIDRServiceAllocator 2025-10-14 17:22:19 -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
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
phuhung273
7ed61cfde1 chore(kubelet): migrate topologymanager to contextual logging 2025-10-14 18:32:20 +07: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
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
yongruilin
9292f1e82b refactor(resourceclaim): generalize tweakDuplicateRequestName to tweakAddDeviceRequest 2025-10-13 22:37:11 +00:00
yongruilin
2260c9b983 test(validation): Add unit tests for DeviceAllocationResult.Config maxItems 2025-10-13 22:18:11 +00:00
yongruilin
b3eb152db4 feat(dra): Migrate DeviceAllocationResult.Config maxItems validation to declarative
This commit migrates the validation for the DeviceAllocationResult.Config field to declarative validation by adding the +k8s:maxItems=64 annotation.

The change is applied to the following API versions:
- resource/v1
- resource/v1beta1
- resource/v1beta2
2025-10-13 22:18:10 +00:00