Commit graph

136575 commits

Author SHA1 Message Date
Qi Wang
f1ccd2d8aa Add MemoryReservationPolicy to kubeletconfig for MemoryQoS feature
Add MemoryReservationPolicy (None/HardReservation) controls memory.min. This allows
independently of memory.min protection, providing operators more
granular control over memoryQoS behavior.
Signed-off-by: Qi Wang <qiwan@redhat.com>
2026-03-16 11:24:34 -04:00
Kubernetes Prow Robot
9c7e57bb7c
Merge pull request #137330 from tico88612/cleanup/test-node-pod-dep-prometheus
Remove dep. Prometheus from test/e2e/node/pods.go
2026-03-16 20:43:49 +05:30
Kubernetes Prow Robot
624af3f634
Merge pull request #134660 from Priyankasaggu11929/kep-3085-add-callback
[KEP-3085] kubelet - extend RuntimeHelper interface with `OnPodSandboxReady` to update `PodReadyToStartContainers` condition correctly
2026-03-16 20:43:41 +05:30
Kubernetes Prow Robot
23e0d392ce
Merge pull request #137742 from dims/dsrinivas/issue-137739-drain-timeout
kubectl/drain: widen namespace termination retry timeout
2026-03-16 18:53:39 +05:30
Kubernetes Prow Robot
bf303f9ec6
Merge pull request #137751 from KevinTMtz/pod-level-resource-managers-forward-compatibility
[PodLevelResourceManagers] CPU & Memory managers forward compatibility - Alpha
2026-03-16 15:15:39 +05:30
Kubernetes Prow Robot
eb0da686b8
Merge pull request #137765 from sivchari/fix-arg-order
fix: argument order of errors.Is
2026-03-16 13:41:39 +05:30
sivchari
183ebf26d7
fix: argument order of errors.Is
Signed-off-by: sivchari <shibuuuu5@gmail.com>
2026-03-16 16:23:26 +09:00
Jian Qiu
6c8e5e2d41
Add more unit tests for constrained impersonation (#136737)
* Add more unit tests for constrained impersonation

test cases for large number of groups/extra
test cases for system:masters constrained impersonation is not allowed

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Validate each authz request in the constrained impersonation unit test

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2026-03-16 11:03:37 +05:30
Priyanka Saggu
bd1ed91bb2 fix TestManagedBy by resetting metrics after controller start like other tests 2026-03-16 11:02:32 +05:30
Priyanka Saggu
7b71b3a165 make OnPodSandboxReady async to work correctly with on-demand per-pod relist 2026-03-16 10:55:52 +05:30
Priyanka Saggu
410efb048f add e2e tests verifying PodReadyToStartContainers condition set using criProxy to inject delay time 2026-03-16 10:14:02 +05:30
Priyanka Saggu
d7abab886e add tests to verify invocation of OnPodSandboxReady method and PodReadyToStartContainers condition 2026-03-16 10:14:02 +05:30
Priyanka Saggu
ab73613f42 [kubelet] add new OnPodSandboxReady method to RuntimeHelper interface to update PodReadyToStartContainers condition immediately after sandbox creation
This is to address the bug (gh-issue 134460), which reported that currently `PodReadyToStartContainers` condition is only set to `True` after the container image pull is completed. so, if the image size is big and image pull takes significant time to finish, the pod status managaer is blocked and the condition remaind `False`.

The commit implements the following changes, to allow kubelet to update the `PodReadyToStartContainers` pod condition immediately after all three requirements (pod sandbox, networking, volume)are ready, but before container images are pulled or containers are created.
* add `OnPodSandboxReady` method to the `RuntimeHelper` interface in `container/helpers.go`
* implement the `OnPodSandboxReady` method in Kubelet
* inside `(containerRuntime).SyncPod`, after sandbox creation and network configuration, invoke `runtimeHelper.OnPodSandboxReady()` directly
  (this method retrieves current pod status, generates updated API status, and notifies the status manager to sync to the API server)

This implementation is gated under `PodReadyToStartContainersCondition` feature gate, and fails gracefully, i.e, it only logs error and continues the pod creation process to make sure that these new changes don't block pod startup.
2026-03-16 10:14:02 +05:30
Kubernetes Prow Robot
8cfc85428a
Merge pull request #137678 from aaron-prindle/flowcontrol-discriminator-and-member-dv-migration
feat: flowcontrol LimitResponse and PriorityLevelConfigurationSpec discriminator and member dv migration
2026-03-16 09:15:37 +05:30
Kubernetes Prow Robot
a274c27dd3
Merge pull request #137727 from SergeyKanzhelev/removeRaceInObservedGen
wait for container condition to be true before sending the pod update
2026-03-16 04:19:36 +05:30
Kubernetes Prow Robot
040ca59611
Merge pull request #137454 from haircommander/proc-mount-ga
KEP-4265: feature: promote ProcMountType to GA
2026-03-15 07:57:34 +05:30
Kevin Torres
b969bbda83 CPU & Memory managers forward compatibility 2026-03-14 23:39:07 +00:00
Davanum Srinivas
77f8d7c2a9
kubectl/drain: widen namespace termination retry timeout
TestEvictDuringNamespaceTerminating intentionally exercises the retry path
but only allows 10ms of total time. The production loop sleeps, refreshes
state, and retries under that same deadline, so a single retry plus
scheduler jitter is enough to exhaust the budget under -race or on busy
CI workers.

Keep the retry interval small so the test still covers the retry behavior,
but widen the overall timeout so the assertion measures semantics instead
of machine speed.

Tested:
go test -race ./staging/src/k8s.io/kubectl/pkg/drain -run TestEvictDuringNamespaceTerminating -count=100
2026-03-14 11:58:32 -04:00
Kubernetes Prow Robot
9ad8603033
Merge pull request #137736 from akhilerm/fix-kms-rules
remove streaming as a dependency of kms repo
2026-03-14 19:11:35 +05:30
Akhil Mohan
e0ec980b4d
remove streaming as a dependency of kms repo
kms does not depend on streaming hence the entry is not needed
in the dependencies in publishing/rules file

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
2026-03-14 18:11:57 +05:30
Kubernetes Prow Robot
287bfd2b44
Merge pull request #137621 from Karthik-K-N/consolidate-functions
kubelet: deduplicate CPU conversion helper functions
2026-03-14 15:05:34 +05:30
Kubernetes Prow Robot
4c6cbf70b9
Merge pull request #137714 from natasha41575/allow_nri_to_block_resize
[InPlacePodVerticalScaling] Make the hardcoded 'unimplemented' message from CRI a const
2026-03-14 12:11:34 +05:30
Kubernetes Prow Robot
95365ff478
Merge pull request #134768 from KevinTMtz/pod-level-resource-managers-5526
[PodLevelResourceManagers] Pod Level Resource Managers - Alpha
2026-03-14 08:45:35 +05:30
Kubernetes Prow Robot
1817e10998
Merge pull request #136185 from tallclair/ndf-bitmap
Optimize NodeDeclaredFeatures with a bitmap FeatureSet implementation
2026-03-14 06:37:34 +05:30
Sergey Kanzhelev
9aee7c917a wait for container condition to be true before sending the pod update 2026-03-13 23:21:22 +00:00
Kubernetes Prow Robot
0ad0cce87e
Merge pull request #137078 from saschagrunert/label-unlabeled-e2e-node-tests
Label unlabeled e2e node tests
2026-03-14 04:31:36 +05:30
Kubernetes Prow Robot
4df03ea76e
Merge pull request #137550 from KhushAhuja/deflake-resize-cgroup-exec-retry
test/e2e: deflake pod resize cgroup value verification
2026-03-14 03:41:35 +05:30
Aaron Prindle
ccaab0cfd1 feat: add LimitResponse declarative validation discriminator tags 2026-03-13 13:41:03 -07:00
Aaron Prindle
595da7826c feat: add PriorityLevelConfigurationSpec declarative validation discriminator tags 2026-03-13 13:41:03 -07:00
Aaron Prindle
865ef0ca3e chore: wire up declarative validation for flowcontrol PriorityLevelConfiguration 2026-03-13 13:41:03 -07:00
Kubernetes Prow Robot
4db90ce84e
Merge pull request #137682 from aaron-prindle/discriminator-and-member-stability-level-support
fix: stability level to discriminator member validations
2026-03-14 02:09:35 +05:30
Aaron Prindle
c0cf5d1838 address-feedback: pr review round 2 2026-03-13 12:22:15 -07:00
Peter Hunt
389825754c proc mount: drop featuregate note on API
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2026-03-13 15:20:49 -04:00
Kubernetes Prow Robot
733703ee6e
Merge pull request #137339 from qiujian16/parallel-requests
Tests parallel requests in constrained impersonation
2026-03-14 00:41:43 +05:30
Kubernetes Prow Robot
b5661be4ff
Merge pull request #137248 from SergeyKanzhelev/propagate-context-cri-client
add context to CRI API client and contextual logging per-call
2026-03-14 00:41:36 +05:30
Aaron Prindle
c8a857b72f address-feedback: pr review round 1 2026-03-13 11:45:44 -07:00
Kubernetes Prow Robot
cf291323c2
Merge pull request #137683 from ndixita/ippr-kubectl
Bug fix - consider status resources when computing total resources
2026-03-13 23:11:42 +05:30
Kubernetes Prow Robot
b869833664
Merge pull request #137115 from damdo/add-tls-curve-preferences
Add --tls-curve-preferences flag for configuring TLS key exchange mechanism (curves)
2026-03-13 23:11:35 +05:30
Peter Hunt
539352eddd feature: promote ProcMountType to GA
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2026-03-13 12:27:16 -04:00
KhushAhuja
efddaf6561 test/e2e: deflake pod resize cgroup value verification
Replace the manual 3-retry loop (with no delay) in VerifyCgroupValue
with framework.Gomega().Eventually() + HandleRetry, matching the
pattern used for oom_score_adj deflake in #137329. This gives proper
polling with backoff when exec fails during container restarts.
2026-03-13 21:10:37 +05:30
Kubernetes Prow Robot
2fd6c47656
Merge pull request #137706 from scaliby/extract-resource-under-describe
Extract resource under describe to a separate variable
2026-03-13 21:09:43 +05:30
Kubernetes Prow Robot
eeb690e1f3
Merge pull request #137597 from pohly/dra-extended-resource-version-skew
DRA: re-enable extended resource tests for version skew testing
2026-03-13 21:09:36 +05:30
Natasha Sarkar
ed055fcad7 make unimplemented msg a const 2026-03-13 15:24:03 +00:00
Kubernetes Prow Robot
18dd17f7ce
Merge pull request #137709 from tosi3k/refactor-priority-admission-plugin
Refactor Priority admission plugin
2026-03-13 20:15:46 +05:30
Kubernetes Prow Robot
7f3a5ab96f
Merge pull request #136579 from romanbaron/reuse-scheduling-signature
Reuse pod scheduling signature for opportunistic batching
2026-03-13 20:15:39 +05:30
Damiano Donati
53b163298d
Add --tls-curve-preferences flag for configuring TLS key exchange mechanisms
Introduce support for specifying allowed TLS key exchange mechanisms
(IANA TLS Supported Groups) via a new --tls-curve-preferences flag,
following the same pattern as --tls-cipher-suites.

Curve preferences are specified as numeric IANA TLS Supported Group IDs
(e.g. 23,29,4588) rather than string names. This avoids maintaining a
hardcoded name-to-ID map that would become stale with each Go release,
and ensures new curves (such as Go 1.26's SecP256r1MLKEM768 and
SecP384r1MLKEM1024) work automatically when rebuilding with a newer Go
version -- no code changes required.

Changes:
- Add curves_flag.go in component-base/cli/flag with a simple
  int-to-tls.CurveID cast function
- Add CurvePreferences field ([]int32) to SecureServingOptions, registered
  via IntSliceVar, and wire it through to tls.Config

The order of the list is ignored; Go selects from the set using an
internal preference order. If omitted, Go defaults are used. The set of
accepted values depends on the Go version used to build the binary; see
https://pkg.go.dev/crypto/tls#CurveID for reference.
2026-03-13 14:26:05 +01:00
Kubernetes Prow Robot
0bf52890c5
Merge pull request #137555 from natasha41575/allow_nri_to_block_resize
[InPlacePodVerticalScaling] Allow CRI (and NRI) to block pod-level resizes
2026-03-13 17:23:50 +05:30
Kubernetes Prow Robot
2bd6c7fe3c
Merge pull request #137298 from dims/dsri/cri-streaming-option-a-hardcut
cri streaming option a hardcut - add new staging repositories `streaming` and `cri-streaming`
2026-03-13 17:23:36 +05:30
Antoni Zawodny
6511deadd8 Refactor Priority admission plugin 2026-03-13 12:21:37 +01:00
Aaron Prindle
bea6f92226 fix: stability level to discriminator member validations 2026-03-13 03:34:05 -07:00