Commit Graph

27837 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
b99ca3f736 Merge pull request #132498 from ffromani/e2e-serial-node-cpumanager-fix-ordered
e2e: serial: node cpumanager parity with the old suite
2025-07-01 07:15:31 -07:00
Kubernetes Prow Robot
201325e869 Merge pull request #132433 from michaelasp/configurablecle
feat: make CLE timers configurable
2025-06-30 12:08:31 -07:00
Kubernetes Prow Robot
c6539bc785 Merge pull request #132284 from ArkaSaha30/bump-etcd-3.6.1
Bump etcd to v3.6.1
2025-06-30 11:00:35 -07:00
Kubernetes Prow Robot
a57091ce85 Merge pull request #132555 from utam0k/scheduler-perf-emulate-versino
scheduler_perf: Set version emulation only when QueueingHints is disabled
2025-06-29 05:52:29 -07:00
utam0k
f437aa4aa6 scheduler_perf: Set version emulation only when QueueingHints is disabled
Signed-off-by: utam0k <k0ma@utam0k.jp>
2025-06-28 11:00:23 +09:00
Kubernetes Prow Robot
2e02a00885 Merge pull request #132438 from dims/golangci-plugin-for-sorting-feature-gates
golangci plugin for sorting feature gates
2025-06-27 12:08:30 -07:00
Davanum Srinivas
d50e1a684c Ensure all the files have the updated sorting
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-27 11:13:50 -04:00
Patrick Ohly
efcb03759d E2E framework: sort tests in JUnit report
This is more useful when viewing results in spyglass because related tests are
shown together. The default was to show them by start or end time (not exactly
sure), which almost looked random because those times are not shown.
2025-06-27 16:10:38 +02:00
Kubernetes Prow Robot
b38dd716fe Merge pull request #132557 from dims/avoid-killing-kops-etcd-manager
Avoid killing kops etcd-manager
2025-06-26 13:30:29 -07:00
Kubernetes Prow Robot
b7c9333f5c Merge pull request #131837 from sreeram-venkitesh/static-pod-strict-validation-for-api-object-reference
Deny pod admission for static pods referencing API objects
2025-06-26 12:18:30 -07:00
Ania Borowiec
00d3750503 Move ClusterEvent type to staging repo, leaving some functions (that contain logic internal to scheduler) in kubernetes/kubernetes (#132190)
* Move ClusterEvent type to staging repo, leaving some functions (that contain logic internal to scheduler) in kubernetes/kubernetes

apply review comment and fix linter warning

* update-vendor.sh

* update doc comments

* run update-vendor.sh
2025-06-26 08:06:29 -07:00
Davanum Srinivas
31667cc741 Avoid killing kops etcd-manager
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-26 09:15:02 -04:00
Kubernetes Prow Robot
bc8491416d Merge pull request #132487 from macsko/add_schedulerasyncapicalls_feature_flag
KEP-5229: Add SchedulerAsyncAPICalls feature gate
2025-06-26 05:54:36 -07:00
Kubernetes Prow Robot
0256361813 Merge pull request #132355 from serathius/apf_estimate_size
Estimate average size of objects in etcd and plug it into request cost estimator
2025-06-26 05:54:28 -07:00
Kubernetes Prow Robot
28e4f3f6a3 Merge pull request #131350 from pohly/etcd-output
etcd output interception
2025-06-26 04:46:29 -07:00
Kubernetes Prow Robot
dcefe0ef41 Merge pull request #132058 from pohly/dra-kubelet-connection-monitoring
DRA kubelet: connection monitoring
2025-06-26 03:40:29 -07:00
Kubernetes Prow Robot
b3e438aef9 Merge pull request #132220 from BenTheElder/a-little-owners-cleanup
emeritus spiffxp and backfill OWNERS
2025-06-25 19:16:28 -07:00
Kubernetes Prow Robot
1e59323e60 Merge pull request #132065 from yuanwang04/SwapMetrics
Fix pod and container level swap metrics for CRI
2025-06-25 16:22:28 -07:00
Kubernetes Prow Robot
befc91aec1 Merge pull request #132502 from benluddy/validatingadmissionpolicy-integration-marker-flake
Fix flake caused by invalid detection of active policies in VAP integration tests
2025-06-25 14:02:35 -07:00
sreeram-venkitesh
5390f75360 Added podutil.HasAPIObjectReference to deny admission for static pods referencing API objects 2025-06-25 23:59:26 +05:30
Kubernetes Prow Robot
c1afec6a0b Merge pull request #132357 from dims/drop-usage-of-forked-copies-of-goyaml.v2-and-goyaml.v3
Drop usage of forked copies of goyaml.v2 and goyaml.v3
2025-06-25 09:48:29 -07:00
Michael Aspinwall
1a59c250ea feat: make CLE timers configurable 2025-06-25 16:38:50 +00:00
Davanum Srinivas
c5b4b133ce switch to latest sigs.k8s.io/yaml v1.5.0 (run update-gofmt.sh as well)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-25 11:42:12 -04:00
Marek Siarkowicz
ec78b8305a Estimate average size of objects in etcd and plug it into request cost estimator 2025-06-25 17:25:56 +02:00
Ben Luddy
190c8c7abc Use per-policy marker names for VAP integration tests.
Writes to policy resources don't instantaneously take effect in admission. ValidatingAdmissionPolicy
integration tests determine that the policies under test have taken effect by adding a sentinel
policy rule and polling until that rule is applied to a request.

If the marker resource names are the same for each test case in a series of test cases, then
observing a policy's effect on a marker request only indicates that _any_ test policy is in effect,
but it's not necessarily the policy the current test case is waiting for. For example:

1. Test 1 creates a policy and binding.

2. The policy and binding are observed by the admission plugin and take effect.

3. Test 1 observes that a policy is in effect via marker requests.

4. Test 1 exercises the behavior under test and successfully deletes the policy and binding it
created.

5. Test 2 creates a policy and binding.

6. Test 2 observes that a policy is in effect via marker requests, but the policy in effect is still
the one created by Test 1.

7. Test 2 exercises the behavior under test, which fails because it was evaluated against Test 1's
policy.

Generating a per-policy name for the marker resource in each test resolves the timing issue. In the
example, step (6) will not proceed until the admission plugin has observed the policy and binding
created in (5).
2025-06-25 11:17:20 -04:00
Kubernetes Prow Robot
56fd09057a Merge pull request #132485 from saschagrunert/lifecycle-test-improvement
Improve containers lifecycle test output parsing
2025-06-25 06:46:31 -07:00
Lukasz Szaszkiewicz
b8b3984874 client-go/reflector: stop exposing UseWatchList (#132453)
* client-go/reflector: stop exposing UseWatchList

* apiserver/cacher: stop setting reflector.UseWatchList

* test/integration/watchlist: fix TestReflectorWatchListFallback
2025-06-25 04:04:29 -07:00
Kubernetes Prow Robot
587aa60686 Merge pull request #132483 from serathius/active-poll
Activly poll for namespace termination instead of sleeping
2025-06-25 02:58:35 -07:00
Sascha Grunert
0028ea8e99 Improve containers lifecycle test output parsing
This should fix the following test when running it with CRI-O:

```
[It] [sig-node] [Feature:SidecarContainers] [Serial] Containers
Lifecycle when A node running restartable init containers reboots should
restart the containers in right order with the proper phase after the
node reboot
```

The issue is that we have prefixed "unable to retrieve container logs
for …" outputs in the message to be parsed. We now skip that part and
leave the current behavior untouched.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-06-25 08:51:29 +02:00
Marek Siarkowicz
d6d186ece0 Activly poll for namespace termination instead of sleeping 2025-06-24 20:56:44 +02:00
Kubernetes Prow Robot
49c20d6f44 Merge pull request #132173 from dejanzele/feat/promote-job-pod-replacement-policy-ga
KEP-3939: Job Pod Replacement Policy; promote to GA
2025-06-24 07:04:28 -07:00
Francesco Romani
3b0fd32810 e2e: serial: cpumanager: continue on failure
The `ginkgo.ContinueOnFailure` decorator serves the usecase
of the new cpumanager tests perfectly:

https://onsi.github.io/ginkgo/#failure-handling-in-ordered-containers

"""
You can override this behavior by decorating an Ordered container with
ContinueOnFailure. This is useful in cases where Ordered is being used
to provide shared expensive set up for a collection of specs.
When ContinueOnFailure is set, Ginkgo will continue running specs even
if an earlier spec in the Ordered container has failed.
"""

And this is exactly the case at hand. Previously, without this
decorator, subsequent failures were masked, which is dangerous and not
what we want.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-06-24 15:46:06 +02:00
Francesco Romani
f76e1381d0 e2e: node: fix quota disablement testcases
Initially we added minimal quota disablement e2e tests,
but since the emergence of https://github.com/kubevirt/kubevirt/issues/14965
it becames clear that is better to have full coverage.

This PR restores coverage parity with the old test suite.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-06-24 15:46:01 +02:00
Maciej Skoczeń
ae13d10195 KEP-5229: Add SchedulerAsyncAPICalls feature gate 2025-06-24 12:41:42 +00:00
Ed Bartosh
cf544da6f7 e2e_node: DRA: add tests for different socket setups
Added tests to verify DRA functionality with 2 different socket
configurations:
- the same socket is used for the registration and the DRA service
- 2 separate sockets are used for the registration and the DRA service

Used table-driven ginkgo to avoid code duplication:
specs https://onsi.github.io/ginkgo/#table-driven-tests

This change enhances the robustness of the DRA e2e tests by
validating its behavior with different socket setups.
2025-06-24 10:42:45 +02:00
Ed Bartosh
7f6389e770 e2e_node: DRA: pass socket path as a parameter
Added an ability to specify the socket path for the DRA gRPC
service in the e2e node tests.

The PluginSocket option is added to allow setting the name
of the socket inside the directory where the DRA driver
creates the socket for the DRA gRPC calls. This is used by
the kubelet to connect to the DRA plugin.

The newDRAService and newRegistrar functions are updated to
accept a socketPath parameter, which is used to configure
the PluginDataDirectoryPath and PluginSocket options for the
DRA plugin.

This change enables more flexible configuration of the DRA
plugin in e2e tests, allowing for testing with different
socket paths.
2025-06-24 10:42:45 +02:00
Ed Bartosh
c90c2e0d40 kubelet: DRA: fix linter warnings
Fixed the following warnings:
dra_test.go:884:2: singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
	switch podName {
	^
dra_test.go:686:4: SA4006: this value of kubeletPlugin is never used (staticcheck)
	kubeletPlugin = newDRAService(ctx, f.ClientSet, nodeName, driverName)
        ^
2025-06-24 10:42:45 +02:00
Ed Bartosh
4ee7374b24 DRA kubelet: add connection monitoring
This ensures that ResourceSlices get removed also when a plugin becomes
unresponsive without removing the registration socket.

Tests are from https://github.com/kubernetes/kubernetes/pull/131073 by Ed
with some modifications, the implementation is new.
2025-06-24 10:42:41 +02:00
Kubernetes Prow Robot
29ed1fb152 Merge pull request #132399 from carlory/fix-132397
Fix [Failing test] [sig-node] [Feature:GPUDevicePlugin] [Serial]-related tests
2025-06-24 00:24:29 -07:00
Kubernetes Prow Robot
7521de14f8 Merge pull request #132442 from ylink-lfs/ci/test_image_update
ci: update test image base: nginx, nginx-new
2025-06-23 22:58:29 -07:00
Kubernetes Prow Robot
0017db180b Merge pull request #130052 from utam0k/qhint-enable-plugins
sched: Apply EnablePlugins to CoreResourceEnqueueTestCases
2025-06-23 17:00:37 -07:00
Kubernetes Prow Robot
73b4948776 Merge pull request #132409 from nojnhuh/dra-init-container-e2e
DRA: add e2e test with initContainer using external claim
2025-06-23 14:18:34 -07:00
Yuan Wang
c5f061e0df Fix pod and container level swap metrics for CRI 2025-06-23 17:57:12 +00:00
ArkaSaha30
e1d74f1d33 Update etcd image revision to 3.6.1-1
This commit will update etcd image revision from 3.6.1-0 to 3.6.1-1
Ref Discussion: https://github.com/kubernetes/kubernetes/pull/132395/files#r2156576606

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2025-06-23 23:00:38 +05:30
Kubernetes Prow Robot
285c6113ea Merge pull request #132417 from p0lyn0mial/upstream-watchlist-e2e-metadatainformer
e2e/watchlist: new test for checking metadata informer
2025-06-23 07:48:02 -07:00
ylink-lfs
59dd2bd60d ci: update test image base: nginx, nginx-new 2025-06-23 17:57:59 +08:00
Kubernetes Prow Robot
5e33c00e37 Merge pull request #132336 from dashpole/fix_apiserver_tracing_race
Fix APIServerTracing test data race
2025-06-22 20:26:56 -07:00
Lukasz Szaszkiewicz
fe84377458 e2e/watchlist: new test for checking metadata informer 2025-06-20 08:28:04 +02:00
Jon Huhn
8454093f09 DRA: add e2e test with initContainer using external claim 2025-06-19 15:19:00 -05:00
Kubernetes Prow Robot
b569406b79 Merge pull request #129438 from pacoxu/apiserver-probe-etcd
add etcd server overrides to etcd probe factory for healthz and readyz
2025-06-19 11:30:52 -07:00