Commit Graph

134908 Commits

Author SHA1 Message Date
Benjamin Elder
bb2899fc4a apidiff: autodetect remote and default branch 2025-11-20 16:48:02 -08:00
Kubernetes Prow Robot
5bcb759973 Merge pull request #135304 from macsko/fix_failing_sched_perf_tests_on_featuregates
Fix failing scheduler_perf test cases that don't set any feature gate
2025-11-20 10:26:40 -08:00
Kubernetes Prow Robot
0f093c9f49 Merge pull request #134921 from Karthik-K-N/cel-test
Improve CEL Policy Admission test
2025-11-20 10:26:32 -08:00
Jordan Liggitt
5ed9501d3c Fallback to live ns lookup on admission if lister cannot find namespace 2025-11-20 12:16:21 -05:00
Ed Bartosh
392bb8e777 Refactor API group validation and error reporting
Updated API group validation logic to improve error reporting.
The Validate method now provides more descriptive error messages
when unknown API groups are encountered.
Unit test cases are updated to match the new error messages.

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-11-20 18:35:35 +02:00
Jan Chaloupka
cc5ec714c1 fix(SchedulerPreemption/Async): schedule all medium priority pods first so all low priority pods can be preempted
If not all medium priority pods are allowed to preempt low priority pods
first the high priority pods may occupy the low priority spot and
disallow medium priority pods to preempt all low priority pods. Thus
leaving some low priority pods without a DeletionTimestamp field set and
failing the "Check all low priority pods to be about to preempted."
check.
2025-11-20 17:03:23 +01:00
Nikateen
c5b64ebf2e Use contextual logging in leaderelection
Update leaderelection package to use contextual logging variants:
- Replace wait.JitterUntil with wait.JitterUntilWithContext
- Replace wait.Until with wait.UntilWithContext

This enables proper contextual logging support as part of the
structured logging migration.

Ref #126379
2025-11-20 21:30:05 +05:30
Maciej Borsz
71c25c3a55 Fix apiserver_watch_events_sizes metric.
This metric got broken by caching efforts -- the value is counted only once.
2025-11-20 15:34:59 +00:00
Karthik Bhat
0ffcac7fc7 Use test context instead of generic context 2025-11-20 12:06:03 +05:30
Ravi Sastry Kadali
9dc5683c56 scheduler: Fix memory leak in scheduler cache
The `removeSlice` function was leaving behind references to the
removed element, preventing it from being garbage-collected.
This commit ensures that removed entries are fully cleared,
eliminating the memory leak.

Co-authored-by: ravisastryk <ravisastryk@gmail.com>
Signed-off-by: Sujal Shah <sujalshah28092004@gmail.com>
2025-11-20 02:18:38 +05:30
Lalit Chauhan
79b414dc8f Add k8s:optional on Device.Basic 2025-11-19 19:51:32 +00:00
Kubernetes Release Robot
4cf195304c CHANGELOG: Update directory for v1.35.0-beta.0 release 2025-11-19 16:31:33 +00:00
Karthik Bhat
3e19cc5160 Address review comments 2025-11-19 21:07:28 +05:30
Maciej Skoczeń
04eb121d32 Fix failing scheduler_perf test cases that don't set any feature gate 2025-11-19 10:48:51 +00:00
Aman Shrivastava
f60f5b2460 Refactor: Contextualize CRDFinalizer to fix goroutine leak
Signed-off-by: Aman Shrivastava <amanshrivastava118@gmail.com>
2025-11-19 13:48:45 +05:30
Kubernetes Prow Robot
54900791c4 Merge pull request #135327 from michaelasp/fix-alpha-api-warnings-134023
Fix alpha API warnings for patch version differences
v1.35.0-beta.0
2025-11-18 20:42:00 -08:00
Akhil Singh
e08c1e4ce3 Fix alpha API warnings for patch version differences
Fixes issue #134023 where alpha API warnings were being logged
when binary version (1.34.1) and emulation version (1.34) differed
only in patch version.

The issue was in api_enablement.go where the version comparison
was using EqualTo() which compares all version components including
patch versions. The fix changes the comparison to only check
major.minor versions using version.MajorMinor().

Changes:
- Modified version comparison logic in ApplyTo() method to only
  compare major.minor versions, not patch versions
- Added comprehensive test cases to verify the fix works correctly
- Tests confirm that warnings are still logged for different
  major/minor versions but not for different patch versions

This prevents spurious warnings when emulation version is set to
major.minor (e.g., 1.34) and binary version includes patch (e.g., 1.34.1).
2025-11-18 16:44:38 +00:00
Itamar Holder
792f1643d4 Add e2e tests
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:42 +02:00
Itamar Holder
af66766bf5 Add auto-generated code and boilerplate
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
a4d9ac7bb0 unit test: Set image volume digest as part of container statuses
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
e299190b41 Set image volume digest as part of container statuses
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
777d7ddc17 Add imageRef to testdata
by running:
UPDATE_COMPATIBILITY_FIXTURE_DATA=true make test WHAT=./staging/src/k8s.io/api

Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
2c15d3b8e1 Add field wiping and validation logic
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
52b544e41d Add ImageRef field to VolumeMountStatus
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
21830a160e refactor: expose imageSpec conversion functions
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
c10cead493 cri-api: Add image_ref to the ImageSpec struct
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
277de617bb add the ImageVolumeWithDigest feature gate
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:40 +02:00
Akihiro Suda
0c0bc0d533 hack/lib/util.sh: support uutils' date command
`make` was printing the following warning on Ubuntu 25.10,
which switched away from GNU coreutils to uutils:

```
!!! [1107 12:46:24] Failed to find GNU date as date or gdate. If you are on Mac: brew install coreutils.
<GOPATH>/src/k8s.io/kubernetes/hack/lib/version.sh: line 166: DATE: unbound variable
```

Fix issue 135210

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2025-11-18 17:27:50 +09:00
yashsingh74
ad78b40320 Bump etcd 3.6.6 sdk
Signed-off-by: yashsingh74 <yashsingh1774@gmail.com>
2025-11-18 11:45:22 +05:30
Lukasz Szaszkiewicz
f4c24b5ef5 client-go/reflector: Improve WatchListClient disabled log message for clarity 2025-11-17 09:25:33 +01:00
Adrian Moisey
002c85b218 Tweak the informer for Services
It no longer filters out Services with the v1.IsHeadlessService
label as that is left for EndpointSlices
2025-11-17 08:39:38 +02:00
Kubernetes Prow Robot
8d450ef773 Merge pull request #135305 from saschagrunert/fix-procmount-userns-validation
test/e2e_node: Update procMount test to use Restricted PSA level
2025-11-14 08:31:40 -08:00
Sascha Grunert
a66c025dc9 test/e2e_node: Update procMount test to use Restricted PSA level
Update the procMount test expectations to match the intentional PSA
policy relaxation introduced in commit e8bd3f629d.

As of Kubernetes 1.35+, Pod Security Admission Baseline policy
allows UnmaskedProcMount for pods with user namespaces (hostUsers:
false). This was an intentional change to support nested container
use cases while maintaining security through user namespace isolation.

The test "will fail to unmask proc mounts if not privileged" was
written before this relaxation and expected Baseline level to reject
UnmaskedProcMount. Since Baseline now allows it (for user namespace
pods), the test needs to use Restricted level instead, which
unconditionally blocks UnmaskedProcMount regardless of user namespace
settings.

Changes:
- Change PSA level from Baseline to Restricted
- Update test name to clarify it's testing Restricted level behavior
- Update framework name from "proc-mount-baseline-test" to
  "proc-mount-restricted-test"

Fixes the ci-crio-userns-e2e-serial test failure that started occurring
when runtimes began reporting user namespace support.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-11-14 10:17:54 +01:00
liyuerich
a9085f7358 enable commentstart check on apidiscovery API group
Signed-off-by: liyuerich <yue.li@daocloud.io>
2025-11-14 15:10:30 +08:00
bwsalmon
a48b189025 Fix a bug in scheduler_perf. 2025-11-14 04:03:03 +00:00
Stephen Kitt
55c337637e Enforce Golang a, b = b, a swaps
This eliminates the last two remaining three-step value swaps (t =
a; a = b; b = t instead of a, b = b, a) and enables linting to prevent
new ones being added in future.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-11-13 06:38:23 -05:00
Dev1622
f76d0e5aa4 test/e2e: replace forbidden gomega.BeTrue usage with Eventually(...).Should(Succeed()) 2025-11-13 12:39:17 +05:30
Dev1622
216aaf76cb vendor: update vendor and license metadata after replacing BeTrue usage in csi tests 2025-11-13 12:39:17 +05:30
Surya Dev
cee5b837da Resolve lint restriction on BeTrue by introducing Succeed() with contextual error messages 2025-11-13 12:39:16 +05:30
bwsalmon
854e67bb51 KEP 5598: Opportunistic Batching (#135231)
* First version of batching w/out signatures.

* First version of pod signatures.

* Integrate batching with signatures.

* Fix merge conflicts.

* Fixes from self-review.

* Test fixes.

* Fix a bug that limited batches to size 2
Also add some new high-level logging and
simplify the pod affinity signature.

* Re-enable batching on perf tests for now.

* fwk.NewStatus(fwk.Success)

* Review feedback.

* Review feedback.

* Comment fix.

* Two plugin specific unit tests.:

* Add cycle state to the sign call, apply to topo spread.
Also add unit tests for several plugi signature
calls.

* Review feedback.

* Switch to distinct stats for hint and store calls.

* Switch signature from string to []byte

* Revert cyclestate in signs. Update node affinity.
Node affinity now sorts all of the various
nested arrays in the structure. CycleState no
longer in signature; revert to signing fewer
cases for pod spread.

* hack/update-vendor.sh

* Disable signatures when extenders are configured.

* Update pkg/scheduler/framework/runtime/batch.go

Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>

* Update staging/src/k8s.io/kube-scheduler/framework/interface.go

Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>

* Review feedback.

* Disable node resource signatures when extended DRA enabled.

* Review feedback.

* Update pkg/scheduler/framework/plugins/imagelocality/image_locality.go

Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>

* Update pkg/scheduler/framework/interface.go

Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>

* Update pkg/scheduler/framework/plugins/nodedeclaredfeatures/nodedeclaredfeatures.go

Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>

* Update pkg/scheduler/framework/runtime/batch.go

Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>

* Review feedback.

* Fixes for review suggestions.

* Add integration tests.

* Linter fixes, test fix.

* Whitespace fix.

* Remove broken test.

* Unschedulable test.

* Remove go.mod changes.

---------

Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>
2025-11-12 21:51:37 -08:00
Kubernetes Prow Robot
7070977604 Merge pull request #135275 from BenTheElder/fix-selinux
update github.com/opencontainers/selinux to v1.13.0
2025-11-12 20:47:37 -08:00
Kubernetes Prow Robot
8849917973 Merge pull request #135246 from carlory/fix-135239-2
Fix volume performance tests with performance constraints
2025-11-12 18:49:37 -08:00
Ed Bartosh
4822f77879 kubelet: migrate allocation to contextual logging 2025-11-12 21:50:24 +02:00
Surya
c68b35c4c7 Update vendored dependencies 2025-11-12 22:06:10 +05:30
Kubernetes Prow Robot
c245b40b87 Merge pull request #135254 from saschagrunert/image-volume-containerd-skip
[KEP-4639] Remove image volume e2e test because CI has containerd < 2.1
2025-11-12 07:59:49 -08:00
Kubernetes Prow Robot
9673a7fbf1 Merge pull request #132919 from ndixita/pod-level-in-place-pod-resize
Pod level in place pod resize - alpha
2025-11-12 07:59:41 -08:00
Benjamin Elder
1ce140d105 update github.com/opencontainers/selinux to v1.13.0 2025-11-12 14:46:31 +00:00
Kubernetes Release Robot
f33a6e5a92 CHANGELOG: Update directory for v1.32.10 release 2025-11-12 12:00:59 +00:00
Kubernetes Release Robot
ea83385231 CHANGELOG: Update directory for v1.31.14 release 2025-11-12 11:33:21 +00:00
Kubernetes Release Robot
b6e83d29fc CHANGELOG: Update directory for v1.33.6 release 2025-11-12 09:48:46 +00:00