Commit Graph

136306 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d47f3f253b Merge pull request #137343 from gnufied/prevent-podscheduling-optin
Add API changes to prevent pod scheduling via CSIDriver object
2026-03-11 03:53:17 +05:30
Kubernetes Prow Robot
aa5abdd371 Merge pull request #136817 from kairosci/fix-gc-notfound-136525
Handle NotFound errors in garbage collector
2026-03-11 03:53:09 +05:30
Kubernetes Prow Robot
67579b0285 Merge pull request #137593 from pacoxu/flaking-test-lb
flaking fix: ignore watch actions from the informer's reflector
2026-03-11 03:03:40 +05:30
Kubernetes Prow Robot
0873aca240 Merge pull request #137402 from Nordix/fix-ipv6-support-check
fix(kube-proxy): fix IPv6 support check for Linux
2026-03-11 03:03:33 +05:30
Kubernetes Prow Robot
69144c9081 Merge pull request #137371 from pohly/dra-bind-claim-panic
DRA scheduler: fix potential panic when DRABindingConditions are enabled
2026-03-11 03:03:25 +05:30
Kubernetes Prow Robot
58c97976ea Merge pull request #137051 from vladikkuzn/kind-labels-to-cherry-pick
Automate adding kind/* labels to cherry-pick PRs
2026-03-11 03:03:18 +05:30
Kubernetes Prow Robot
5f3d744c8f Merge pull request #136045 from SergeyKanzhelev/configzIsOfficial
/configz is official endpoint, removing the misleading note
2026-03-11 03:03:10 +05:30
Kubernetes Prow Robot
c5a0cfcc7a Merge pull request #136996 from everettraven/dv/minlength
[Declarative Validation] Add `k8s:minLength` tag
2026-03-11 01:47:16 +05:30
Alessio Attilio
8ed40e7ae7 test: add unit tests for deleteObject NotFound handling in garbage collector
When deleteObject returns a NotFound error (the object was externally deleted
between the GET and the DELETE), attemptToDeleteItem should enqueue a virtual
delete event and return enqueuedVirtualDeleteEventErr.

Cover both code paths:
- default (background propagation): item with dangling owner
- waitingForDependentsDeletion: item whose owner is foreground-deleting
2026-03-10 20:43:30 +01:00
Kubernetes Prow Robot
0009958799 Merge pull request #137386 from richabanker/flagz-beta
Graduate ComponentFlagz feature gate to Beta
2026-03-11 00:45:26 +05:30
Kubernetes Prow Robot
89d2deaa1d Merge pull request #137202 from serathius/watchlist-trace
Mirror List and WatchList tracing
2026-03-11 00:45:18 +05:30
Alima Azamat
18cbbbd34e podStartSLOduration excludes init container runtime and image pulling time, includes only stateless and immediately schedulable pods (#131950) 2026-03-11 00:45:11 +05:30
Kubernetes Prow Robot
bfb362c575 Merge pull request #137466 from richabanker/nh-scheduler
Enable native histograms gated by feature flag in scheduler
2026-03-10 23:03:11 +05:30
Richa Banker
a902b8ffdc Graduate ComponentFlagz feature gate to Beta 2026-03-10 09:50:16 -07:00
Kubernetes Prow Robot
f6ca739265 Merge pull request #137610 from JoelSpeed/forbid-omitzero-optional
Add explicit forbid for `omitzero` usage on optional fields
2026-03-10 21:27:11 +05:30
Patrick Ohly
f33176fc00 DRA scheduler: add unit tests for AllocationTimestamp
The code paths for adding AllocationTimestamp were not tested well. None of
the test cases verified that an AllocationTimestamp gets added at all because
go-cmp was instructed to ignore the unpredictable field.

We can do better than that and at least check for existence by normalizing all
non-nil time stamps to the empty time. This affects all tests where the binding
conditions and thus AllocationTimestamp support is enabled.

The retry loop for status updates was untested. The fake client has to return a
conflict status error to trigger it. This enables writing a test case where a
concurrent deallocation would have caused the nil panic without the previous
fix.

For binding conditions, one test case gets added which runs through the full
flow of allocating a claim and trying to bind it. All other test cases seem to
have started with the claim already allocated.

Altogether this increases coverage from 82.4% to 83.7%.
2026-03-10 16:25:53 +01:00
Joel Speed
765891cc0f Condense optionalfields exceptions for apiserverinternal group 2026-03-10 15:06:03 +00:00
Joel Speed
47d830f3cd Forbid usage of omitzero for fields marked optional 2026-03-10 15:03:08 +00:00
Kubernetes Prow Robot
f8b277b2b8 Merge pull request #137600 from pacoxu/integration-flake
for discovery integration, set client qps limit to 50 and burst to 100
2026-03-10 20:21:30 +05:30
Kubernetes Prow Robot
9d0495ec93 Merge pull request #137495 from pohly/klog-update
dependencies: klog v2.140.0
2026-03-10 20:21:21 +05:30
Kubernetes Prow Robot
519dbb1929 Merge pull request #137481 from pohly/PR224-fix-upgrade-downgrade-failures
DRA upgrade/downgrade: add some debug output for stopping commands
2026-03-10 20:21:13 +05:30
Kubernetes Prow Robot
2757a872ec Merge pull request #137523 from enj/enj/f/constrained_impersonation_latency_metrics
KEP-5284: add impersonation latency tracking
2026-03-10 19:29:36 +05:30
Kubernetes Prow Robot
ec451e29ab Merge pull request #137384 from richabanker/statusz-beta
Graduate ComponentStatusz feature gate to Beta
2026-03-10 19:29:28 +05:30
Kubernetes Prow Robot
cf3957f01a Merge pull request #137364 from Phaow/add-vgs-tests
test: add preprovisioned vgs test
2026-03-10 19:29:19 +05:30
Kubernetes Prow Robot
2f9c2462f7 Merge pull request #137332 from gavinkflam/fix-projected-token-link-file-owner-uid
bug: Fix link file ownership of projected serviceAccountToken
2026-03-10 19:29:11 +05:30
Kubernetes Prow Robot
25f4905292 Merge pull request #137596 from pohly/golangci-modernize-new
golangci-lint: disable newexpr hint
2026-03-10 18:33:18 +05:30
Kubernetes Prow Robot
4e3e58ffbe Merge pull request #136435 from Jefftree/leaderelection-client-efficiency
Update leasecandidate client to read from cache
2026-03-10 18:33:12 +05:30
Bryce Palmer
439ee9f19f validation-gen/tests: add minlength tag tests
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
2026-03-10 08:17:08 -04:00
Bryce Palmer
011738a541 validation-gen/validators: add minlength validator
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
2026-03-10 08:17:08 -04:00
Kubernetes Prow Robot
21b427c299 Merge pull request #136827 from atombrella/feature/fix_nilness_controller
Fix cases of nilness under pkg/controller.
2026-03-10 15:15:11 +05:30
Paco Xu
0cc4aaa963 for discovery integration, set client qps limit to 50 and burst to 100 2026-03-10 15:43:45 +08:00
Patrick Ohly
4f260c4399 golangci-lint: disable newexpr hint
When updating master to Go 1.26, the hint in the modernize linter got enabled
automatically. We want to be more conservative to avoid issues when new code
needs to be backported. Currently older release branches do not have Go 1.26 yet.
2026-03-10 08:03:36 +01:00
Paco Xu
eea86f1f21 flaking fix: ignore watch actions from the informer's reflector 2026-03-10 13:38:32 +08:00
Kubernetes Prow Robot
a142b22c38 Merge pull request #136965 from yuanwang04/restart-pod-tests
Move E2E tests for RestartAllContainers
2026-03-10 08:53:11 +05:30
Antoni Zawodny
3f094dc228 Create Workload API v1alpha2 (#136976)
* Drop WorkloadRef field and introduce SchedulingGroup field in Pod API

* Introduce v1alpha2 Workload and PodGroup APIs, drop v1alpha1 Workload API

Co-authored-by: yongruilin <yongrlin@outlook.com>

* Run hack/update-codegen.sh

* Adjust kube-scheduler code and integration tests to v1alpha2 API

* Drop v1alpha1 scheduling API group and run make update

---------

Co-authored-by: yongruilin <yongrlin@outlook.com>
2026-03-10 07:59:10 +05:30
Kubernetes Prow Robot
1c91b2969f Merge pull request #136964 from yuanwang04/restart-pod-last-term-status
Fix LastTerminationStatus for RestartAllContainers
2026-03-10 06:59:17 +05:30
Kubernetes Prow Robot
a01d2e6cd4 Merge pull request #132922 from yt2985/client-fix
Fix the client-go issue of reloading trust root CAs.
2026-03-10 06:59:10 +05:30
Monis Khan
8a154c3d39 KEP-5284: add impersonation latency tracking
This change allows slow impersonation requests to be tracked via the
apiserver.latency.k8s.io/impersonation audit event annotation.

Updated tests to assert that the audit event log:

- Contains the new latency annotation
- Contains the impersonationConstraint field
- Failed impersonation attempts are observable by the response status

Signed-off-by: Monis Khan <mok@microsoft.com>
2026-03-09 19:58:31 -04:00
Kubernetes Prow Robot
1a3cc8be4d Merge pull request #137552 from kannon92/issue-137539
move extended resources to dra feature lane
2026-03-10 05:17:16 +05:30
Kubernetes Prow Robot
dbaf71515c Merge pull request #137521 from BenTheElder/document-kind-feature
document "Kind" e2e feature
2026-03-10 05:17:09 +05:30
Richa Banker
07705a5de7 Enable native histograms in scheduler gated by feature flag 2026-03-09 16:36:05 -07:00
Yuan Wang
f33a2767aa Refactor container restart policy tests to e2e/common/node
- Added validation for lastTerminationStatus
2026-03-09 23:05:05 +00:00
Kubernetes Prow Robot
e7f635506d Merge pull request #136763 from richabanker/nh-alpha
Enable native histograms gated by feature flag in apiserver
2026-03-10 04:11:09 +05:30
Richa Banker
682570580d Graduate ComponentStatusz feature gate to Beta 2026-03-09 15:00:26 -07:00
Yuan Wang
cf33d3ace3 Fix LastTerminationStatus for RestartAllContainers 2026-03-09 21:47:45 +00:00
Kubernetes Prow Robot
0fbb89c81c Merge pull request #137535 from danwinship/nodeip-e2e-cleanups
e2e cleanups related to node IPs
2026-03-10 02:59:19 +05:30
Kubernetes Prow Robot
7bec24fbb3 Merge pull request #137475 from troychiu/flaky-test-extended-resource-name-no-resource
Fix scheduler flaky test: wait for DeviceClass cache sync in dynamicresources tests
2026-03-10 02:59:11 +05:30
Kubernetes Prow Robot
5ceb6df291 Merge pull request #137574 from SergeyKanzhelev/revertImageID
revert adding PullImageResponse.image_id to CRI API
2026-03-10 01:19:20 +05:30
Kubernetes Prow Robot
3d6026d2fd Merge pull request #136178 from omerap12/promote-hpa-metrics
promote HPA metrics to beta
2026-03-10 01:19:13 +05:30
Troy Chiu
1d2165b29c Fix scheduler flaky test: wait for DeviceClass cache sync in dynamicresources tests
When DRAExtendedResource is enabled, the dynamicresources test setup
registers an event handler for DeviceClasses but was not waiting for it
to sync. This can lead to flaky tests where the cache is not fully
populated when the test starts.

This change captures the event handler registration and includes its
DoneChecker in a WaitFor call.
2026-03-09 19:24:13 +00:00