Commit Graph

134165 Commits

Author SHA1 Message Date
Dan Winship
531be81208 Move proxier cleanup code into separate files.
(No code changes, just moving between files.)
2025-12-02 11:05:00 -05:00
Dan Winship
9f4edccb97 Move proxier supportedness-checking code into separate files.
(No code changes, just moving between files.)
2025-12-02 11:05:00 -05:00
Dan Winship
3ecc3c9e6e Clean up some code we're about to move
So linter-hints won't complain about it in the new file.
2025-12-02 09:54:56 -05:00
Kubernetes Prow Robot
9998041e0f Merge pull request #135278 from aman4433/KUBE-134468
Fix goroutine leak in CRDFinalizer
2025-11-30 21:04:23 -08:00
Kubernetes Prow Robot
61c629cc57 Merge pull request #135426 from kfess/update-relaxedservicenamevalidation
Fix: Check `defaultBackend` in `allowRelaxedServiceNameValidation`
2025-11-28 00:00:22 -08:00
Adrian Moisey
dae1dbc1ff KEP-5311 - Revert RelaxedServiceNameValidation promote to beta 2025-11-27 20:52:35 +09:00
Kubernetes Prow Robot
4bed36e03e Merge pull request #135445 from mortent/FixExtendedResourcesIntegrationTest
DRA: Fix flaky integration test
2025-11-26 12:46:21 -08:00
Kubernetes Prow Robot
1043513f30 Merge pull request #135461 from liggitt/deflake-pod-certificates
Run a unique signer name for each pod certificate tests to avoid cross-test flaking
2025-11-26 11:50:24 -08:00
Jordan Liggitt
6bf802807b Make unique signerName per pod certificate test 2025-11-26 12:19:56 -05:00
Kubernetes Prow Robot
4c04786f74 Merge pull request #135131 from Dev1622/sig-storage/mock-expand-flake-fix
e2e/storage: deflake CSI Mock volume expansion quota validation
2025-11-26 09:10:36 -08:00
Dev1622
d80e73c0a9 cleanup: removed uncached client plumbing, keeping the sequencing fix for quota validation 2025-11-26 19:56:42 +05:30
Morten Torkildsen
c33c0464db DRA: Fix flaky integration test 2025-11-25 18:13:00 +00:00
Kubernetes Prow Robot
dd4d9fad24 Merge pull request #135359 from liggitt/vap-ns-latency
Fallback to live ns lookup on admission if lister cannot find namespace
2025-11-25 09:48:38 -08:00
kita456
950dfd612b test: add test for Ingress Update 2025-11-26 00:31:55 +09:00
kita456
ac90e6a809 Fix: Check defaultBackend in allowRelaxedServiceNameValidation
The allowRelaxedServiceNameValidation() function currently only checks
service names in spec.rules, but it should also check the service name
in spec.defaultBackend.

When an Ingress has a defaultBackend with a service name that is valid
per RFC 1123 but invalid per RFC 1035 (e.g., starting with a digit like
"1-default-service"), the function incorrectly returns false. This
prevents users from updating such Ingresses even though they were
validly created in the past.

This commit adds validation for spec.defaultBackend.service.name to
maintain backward compatibility for existing Ingresses.
2025-11-24 21:23:41 +09: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
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
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
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
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
Kubernetes Release Robot
4b20e5c3fe CHANGELOG: Update directory for v1.34.2 release 2025-11-12 09:26:05 +00:00
Sascha Grunert
71ddb98ae4 Remove image volume e2e test because CI has containerd < 2.1
Remove the e2e test since we switched to beta (enabled by default)
instead of GA. We re-add the test in 1.36.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-11-12 09:31:34 +01:00
ndixita
5ac2ffcc1e Enabling NodeDeclaredFeatures in unit tests
Signed-off-by: ndixita <ndixita@google.com>
2025-11-12 08:26:15 +00:00
Praveen Krishna
0e883083bf Add InPlacePodLevelResourcesVerticalScaling declared feature. 2025-11-12 07:22:51 +00:00
ndixita
10b73f8ef9 Test fixes
Signed-off-by: ndixita <ndixita@google.com>
2025-11-12 06:21:06 +00:00
ndixita
21920bb37e Test fixes
Signed-off-by: ndixita <ndixita@google.com>
2025-11-12 01:18:53 +00:00
Kubernetes Prow Robot
9c915e357f Merge pull request #135228 from aramase/aramase/f/kep_2535_beta
Mark KubeletEnsureSecretPulledImages feature gate as beta
2025-11-11 11:32:55 -08:00
ndixita
0f88a9a17e verioned_feature_list update 2025-11-11 18:19:11 +00:00
ndixita
8920eb9107 Unit test for AddPod with PLR resources
Signed-off-by: ndixita <ndixita@google.com>
2025-11-11 18:19:10 +00:00
Kevin Torres
66248c262c Unit tests for allocation manager 2025-11-11 18:19:10 +00:00
ndixita
1733d8fc8c e2e tests
Signed-off-by: ndixita <ndixita@google.com>
2025-11-11 18:19:09 +00:00