Commit Graph

135873 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
ee22853ef9 Merge pull request #136270 from bart0sh/PR213-DRA-refactor-getting-claims
DRA Kubelet: refactor getting claims
2026-02-27 06:47:57 +05:30
Kubernetes Release Robot
225eb9047b CHANGELOG: Update directory for v1.35.2 release 2026-02-27 00:09:04 +00:00
Kubernetes Release Robot
45a80d28a6 CHANGELOG: Update directory for v1.32.13 release 2026-02-26 23:58:21 +00:00
Kubernetes Release Robot
6749f35636 CHANGELOG: Update directory for v1.33.9 release 2026-02-26 23:57:26 +00:00
Kubernetes Release Robot
d8f2c00a48 CHANGELOG: Update directory for v1.34.5 release 2026-02-26 23:56:35 +00:00
Kubernetes Prow Robot
43112f9cc9 Merge pull request #136960 from zylxjtu/pauseimage
Add the windows 2025 support to pause image
2026-02-27 05:13:54 +05:30
Kubernetes Prow Robot
887929bb95 Merge pull request #137147 from haojiwu/haoji/fix-issue-136288
Fix RepairIPAddress controller startup failure when namespace informer is not yet synced
2026-02-27 04:13:55 +05:30
Kubernetes Prow Robot
44b486f43c Merge pull request #137189 from dhruv7539/codex/getlogs-reactor-support
client-go: make fake Pods.GetLogs honor reactors
2026-02-27 02:05:55 +05:30
Kubernetes Prow Robot
7d70fe491d Merge pull request #135775 from bitoku/no-noexec
Update OCI image volume type description to remove "noexec" attribute
2026-02-27 01:07:56 +05:30
Ayato Tokubi
aa1e24659e Update OCI image volume type description to remove "noexec" attribute
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2026-02-26 18:32:40 +00:00
Kubernetes Prow Robot
0a68f98494 Merge pull request #137261 from tchap/kcm-le-check-context-canceled
client-go/leaderelection: Short-circuit on context canceled
2026-02-26 23:50:35 +05:30
Kubernetes Prow Robot
20c59228e2 Merge pull request #137136 from kfess/bugfix/container-restart-policy-err-message
fix ContainerRestartRules error message
2026-02-26 23:50:26 +05:30
dhruv7539
3ed3163977 client-go: error on invalid fake pod logs reactor object 2026-02-26 09:58:23 -08:00
Kubernetes Release Robot
9d685325ed CHANGELOG: Update directory for v1.36.0-alpha.2 release 2026-02-26 14:31:40 +00:00
Kubernetes Prow Robot
26a82cd894 Merge pull request #136173 from Phaow/add-vgs-tests
test: add vgs retain policy test
2026-02-26 19:12:24 +05:30
Ondra Kupka
aa494f8174 client-go/leaderelection: Check context canceled
The change introduced in 59cd1d0b3b
causes PollUntilContextTimeout to call the condition function even when
the context is canceled already. This is unnecessary in our case and
only leads to one extra loop of processing and extra error messages.
This change makes the renew loop behave like it did before the change.
2026-02-26 12:06:37 +01:00
Kubernetes Prow Robot
f60990d3f9 Merge pull request #136459 from Karthik-K-N/refactor
Refactor NewTestContext to return Context instead of TContext
2026-02-26 14:56:25 +05:30
Ed Bartosh
65e0274e06 DRA: Kubelet: add namespace to error messages
Include the namespace in "unable to get claim info" error messages
in prepareResources and GetResources for easier debugging.
2026-02-26 11:09:02 +02:00
Ed Bartosh
7845a9b330 DRA: TestGetResources: add new test case
Added a test case to cover a scenario when a container
references the same ResourceClaim with multiple distinct
request names.
2026-02-26 11:08:59 +02:00
Ed Bartosh
7b44affb55 DRA Kubelet: optimize UpdateAllocatedResourcesStatus claim lookup
Use map for O(1) claim status lookup instead of O(n*m) nested loop.
2026-02-26 11:07:43 +02:00
Ed Bartosh
1f8bd2ffaa DRA Kubelet: optimize GetContainerClaimInfos claim lookup
Use map for O(1) container claim lookup instead of O(n*m) nested loop.
2026-02-26 11:07:43 +02:00
Ed Bartosh
0a9377b318 DRA Kubelet: optimize GetResources claim collection
Refactor the GetResources function in the DRA manager to collect all
resource claims (regular and extended resource) upfront into a single
map before processing, rather than processing them separately with
multiple lock acquisitions.

This optimization:
- Eliminates nested O(n*m) loops in both regular and extended resource paths
- Reduces lock acquisitions from N+1 to N (one per unique claim name)
- Provides a unified processing pattern for all claim types
- Pre-filters extended resources using a map for O(1) lookup
2026-02-26 11:07:42 +02:00
Kubernetes Prow Robot
a04516e8ce Merge pull request #137255 from pohly/ktesting-contexthelper-test-fix
Ktesting: contexthelper panic + test fix
v1.36.0-alpha.2
2026-02-26 14:04:26 +05:30
Patrick Ohly
620c1b6305 ktesting: fix potential unit test flake
I've not been able to trigger the flake, but it could happen:
- time.Sleep unblocks some background goroutines inside the synctest bubble.
- Those goroutines do not actually run yet.
- The main test checks for the result of those goroutines.

Adding a `synctest.Wait` ensures that all background processing is complete
because it waits for all goroutines to be durably blocked.
2026-02-26 08:45:35 +01:00
Patrick Ohly
8a2d153817 ktesting: fix potential log panic
If the goroutine happens to log after the test has already terminated,
testing.T.Log panics. We must ensure that the goroutine has stopped before
allowing the test to terminate.
2026-02-26 08:44:18 +01:00
Kubernetes Prow Robot
0d156f1eab Merge pull request #137251 from pacoxu/etcd-learner-bugfix
kubeadm: do not add learner member to etcd client endpoints
2026-02-26 13:06:24 +05:30
Karthik Bhat
43bfd8615d Refactor NewTestContext to return Context instead of TContext 2026-02-26 11:27:26 +05:30
haojiwu
ef30ab659e Update startup_race_test.go 2026-02-25 20:52:44 -08:00
Paco Xu
a542dc586a kubeadm: do not add learner member to etcd client endpoints 2026-02-26 10:36:38 +08:00
Kubernetes Prow Robot
761638907a Merge pull request #137120 from lalitc375/lint-shadow
Enable validation-gen lint rule
2026-02-26 05:16:29 +05:30
Kubernetes Prow Robot
1ec27767f3 Merge pull request #136758 from harche/shareid_test
KEP-4680: Add tests to validate ShareID does not interfere with DRA Resource Health Status
2026-02-26 05:16:22 +05:30
Kubernetes Prow Robot
070823cce0 Merge pull request #137065 from richabanker/mvp-metrics2
Add more metrics for Mixed Version Proxy
2026-02-26 01:58:29 +05:30
Kubernetes Prow Robot
7ad86d14df Merge pull request #137243 from michaelasp/fixJobClear
Fix clearing job consistency store for all deletes
2026-02-26 01:12:23 +05:30
Kubernetes Prow Robot
9902413429 Merge pull request #137212 from michaelasp/consistentReplicaSetController
Add the ability for the replicaset controller to read its own writes
2026-02-25 23:32:23 +05:30
Lalit Chauhan
a11feac678 validation-gen: Fix missing MarkAlpha/MarkBeta for nested validation tags
The validation code generator was failing to propagate the
StabilityLevel from the parent context when evaluating composite tags
like `+k8s:item`, `+k8s:each`, and `+k8s:subfield`. As a result, inner
validations like `+k8s:zeroOrOneOfMember` combined with `+k8s:alpha`
were not emitting `.MarkAlpha()` in the generated code.

This fix ensures the `StabilityLevel` is copied to the `subContext`
during evaluation, and adds a test case for list items using
`+k8s:alpha=+k8s:item(...)=+k8s:zeroOrOneOfMember`.

Generated code is updated accordingly.
2026-02-25 17:48:09 +00:00
Michael Aspinwall
f18f0df7fe Add the ability for the replicaset controller to read its own writes 2026-02-25 17:15:53 +00:00
Michael Aspinwall
008b92e0f6 Fix clearing job consistency store for all deletes 2026-02-25 17:13:50 +00:00
Kubernetes Prow Robot
b56d289e2a Merge pull request #137029 from ermias19/enable-kal-optionalorrequied-admission_
api: enable optionalorrequired for admission API group
2026-02-25 22:14:23 +05:30
Kubernetes Prow Robot
c6d1649721 Merge pull request #137226 from tchap/selinuxwarning-reverse-index
controller/selinuxwarning/cache: Add reverse index to speed up DeletePod
2026-02-25 21:16:34 +05:30
Kubernetes Prow Robot
c4a9bea090 Merge pull request #137162 from aojea/component_helpers
update component-helpers policies for dependencies
2026-02-25 21:16:25 +05:30
Penghao
d7cc386716 fix: refine cleanup logic
Signed-off-by: Penghao <pewang@redhat.com>
2026-02-25 22:16:00 +08:00
Kubernetes Prow Robot
691a44c3b5 Merge pull request #137119 from danwinship/dual-stack-tests
dual stack test fixups
2026-02-25 19:43:47 +05:30
Antonio Ojea
620d7f352f update component-helpers policies for dependencies 2026-02-25 12:27:23 +00:00
Kubernetes Prow Robot
1ffd8238fd Merge pull request #136980 from Argh4k/scheduler-perf-refactor
Add new template functions to scheduler_perf
2026-02-25 17:31:43 +05:30
Kubernetes Prow Robot
9f65538a35 Merge pull request #137224 from tchap/conflicts-parsed
controller/selinuxwarning: Pre-parse SELinux label
2026-02-25 16:27:50 +05:30
Ondra Kupka
911a61d050 controller/selinuxwarning/cache: Add reverse index
Added podToVolumes reverse index to optimize DeletePod.
Currently we simply iterate through all the volumes and remove the pod
being deleted from there. This is inefficient and takes longer the
longer the volume list becomes.

Keeping a map pod -> volumes makes removing a pod fast. We can just jump
to the relevant volumes directly and remove the pod from there.
2026-02-25 11:38:50 +01:00
ermias19
dfba43ef6f make update swagger 2026-02-25 11:17:09 +01:00
Maciej Wyrzuc
ee5e2b1ec1 Extract tCtx and collectorCtx from executor 2026-02-25 10:16:50 +00:00
Maciej Wyrzuc
e123d5caf1 Separate operations and executor in scheduler_perf directory 2026-02-25 10:16:49 +00:00
Maciej Wyrzuc
fa36069c7f Extend template functions supported in scheduler perf 2026-02-25 10:16:49 +00:00