Commit Graph

27667 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
1c56fff49b Merge pull request #132077 from ffromani/e2e-node-cgroup-v2-only
e2e: node: cpumanager: require cgroup v2
2025-06-03 12:10:46 -07:00
Kubernetes Prow Robot
9819f760f0 Merge pull request #131991 from SergeyKanzhelev/clarifyTheTokenScope
Clarified the token scope and future plans for the next security scan…
2025-06-03 10:02:38 -07:00
Francesco Romani
7e7aa6d810 e2e: node: cpumanager: require cgroup v2
in general, the rewritten e2e cpumanager test assume cgroup v2.
A limited set of these may be updated to work also with the
obsolete and declining cgroup v1, but these need to be reviewed
on test-by-test matter.

To fix test failures, we add a top level require for cgroup v2,
skipping otherwise. This will fix the red lanes while we review
the testcases and the deprecation plan of the other tests.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-06-03 18:22:48 +02:00
Kubernetes Prow Robot
d23407b0e2 Merge pull request #132035 from haircommander/userns-test-fix
e2e: fix userns test
2025-06-03 06:18:42 -07:00
Kubernetes Prow Robot
901d1249b5 Merge pull request #131801 from natasha41575/move-handle-pod-additions
move pod admission and resize logic into the allocation manager
2025-06-02 13:42:38 -07:00
Sergey Kanzhelev
a512de6e09 Clarified the token scope and future plans for the next security scan to refer to it 2025-06-02 16:53:10 +00:00
Kubernetes Prow Robot
849a82b727 Merge pull request #132036 from adrianmoisey/kep-4427
KEP-4427: Promote Relaxed DNS search string validation to GA
2025-06-01 14:02:43 -07:00
Adrian Moisey
0a7d9f9bfd KEP-4427: Promote Relaxed DNS search string validation to GA 2025-05-31 07:45:16 +02:00
Kubernetes Prow Robot
4832b57e48 Merge pull request #131968 from pohly/dra-kubelet-prepare-validation
DRA kubelet: validation pass before changing claim info cache
2025-05-30 12:40:19 -07:00
Peter Hunt
ee33c1a9fc e2e: fix userns test
after creating two pods, we need to ensure we wait on each to be ready before we collect their logs

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2025-05-30 13:32:52 -04:00
Kubernetes Prow Robot
e0859f91b7 Merge pull request #131887 from ania-borowiec/extract_cyclestate_interface
Moving Scheduler interfaces to staging: split CycleState into interface and implementation, move interface to staging repo
2025-05-30 04:00:18 -07:00
Patrick Ohly
4f91a69f2b DRA integration: move and extend device status test
This moves the enabled/disabled test into the common test/integration/dra which
simplifies the code a bit and amortizes the cost of starting the apiserver
because several different tests can use the same instance, running in parallel.

While at it, setting the status via SSA also gets tested.
2025-05-30 10:29:18 +02:00
Patrick Ohly
a5aabf9f7e DRA kubelet: validation pass before changing claim info cache
If preparing for a pod failed because the driver was not registered, it failed
after already having added the pod and claim to the claim info cache. The
effect was that deletion of the pod was blocked until the driver got
installed. Other errors had a similar effect. Now as many errors as possible
are checked in a read-only loop before proceeding to changing the claim info
cache.

The error message that was surfaced for the problem was not very readable:
   Failed to prepare dynamic resources: failed to get gRPC client for driver dra-1411.k8s.io: plugin name dra-1411.k8s.io not found in the list of registered DRA plugins

To address this, error messages and wrapping get updated according to these
guidelines:

    // Most errors returned by the manager show up in the context of a pod.
    // They try to adher to the following convention:
    // - Don't include the pod.
    // - Use terms that are familiar to users.
    // - Don't include the namespace, it can be inferred from the context.
    // - Avoid repeated "failed to ...: failed to ..." when wrapping errors.
    // - Avoid wrapping when it does not provide relevant additional information to keep the user-visible error short.
2025-05-30 09:52:22 +02:00
Ania Borowiec
d75af825fb Extract interface CycleState and move is to staging repo. CycleState implementation remains in k/k/pkg/scheduler/framework 2025-05-29 16:18:36 +00:00
Kubernetes Prow Robot
90a108cb86 Merge pull request #129918 from sunnylovestiramisu/stresstest
Add Stress Tests for VolumeAttributesClass
2025-05-28 20:22:16 -07:00
Kubernetes Prow Robot
ce21ce5d3b Merge pull request #131869 from pohly/dra-test-integration-scheduling
DRA integration: set up nodes for scheduling
2025-05-28 11:36:24 -07:00
Kubernetes Prow Robot
bfb5c3781a Merge pull request #131794 from ffromani/e2e-serial-node-cpumanager-fix-lowcpu
e2e: node: always declare testcase CPU requirements
2025-05-28 11:36:16 -07:00
Kubernetes Prow Robot
d70229fac7 Merge pull request #131798 from aramase/aramase/f/authn_metrics_beta
Promote automatic_reloads of authn config metrics to BETA
2025-05-27 18:54:17 -07:00
Kam Saiyed
ab6fdf46d8 Move the autoscaling e2e tests to be ran in parallel (#131091)
* Move the autoscaling e2e tests to be ran in parallel to have coverage for concurrent hpa processing

* Move the autoscaling e2e tests to be ran in parallel to have coverage for concurrent hpa processing

* Update autoscaling_utils.go
2025-05-27 13:36:16 -07:00
Kubernetes Prow Robot
2824e598b7 Merge pull request #131973 from sanposhiho/qhint-graduate
feat: graduate QueueingHint to GA
2025-05-27 04:08:22 -07:00
Anish Ramasekar
60b5338d46 Promote automatic_reloads of authn config metrics to BETA
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-05-26 22:06:25 -07:00
Kensei Nakada
f694c58c6c feat: graduate QueueingHint to GA 2025-05-26 21:23:46 +02:00
Patrick Ohly
346fe182be DRA E2E: fail test when ResourceSlice publishing fails
This can happen when a test is run in a cluster where a required feature gate
is turned off. Letting the test continue then fails less clearly. For example,
a test for partitionable devices runs with ResourceSlices which don't have
the additional fields for partitionable devices.
2025-05-26 15:30:39 +02:00
Kubernetes Prow Robot
fe5b9896ae Merge pull request #131818 from soltysh/kuberc_beta
Promote kuberc to beta
2025-05-26 05:52:25 -07:00
Kubernetes Prow Robot
8bfd795352 Merge pull request #131501 from joshjms/update-etcd-3.6.0-rc.4
Update etcd to v3.6.0
2025-05-26 04:30:15 -07:00
Kubernetes Prow Robot
f6530285a8 Merge pull request #131768 from aramase/aramase/f/authz_metrics_stable
Promote automatic_reloads of authz config metrics to BETA
2025-05-26 03:24:21 -07:00
joshjms
b461d80f3d etcd: update etcd image to v3.6.0
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-05-26 15:06:50 +08:00
Patrick Ohly
e63019a870 DRA integration: refactor code to support other tests
Creating class, claim and pod is expected to be fairly common.
2025-05-23 17:52:26 +02:00
Patrick Ohly
50f152440b DRA integration: start scheduler on demand
As soon as we have more than one test using the scheduler, we need some
coordination between tests. This is handled by a singleton which starts the
scheduler for the first user and stops it after the last one is gone.

To avoid having to pass around an additional parameter, the context is used to
access the singleton under the hood.
2025-05-23 15:04:00 +02:00
Carlos Panato
488c94735c Bump dependencies, images and versions used to Go 1.24.3 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-05-23 08:58:13 -04:00
Kubernetes Prow Robot
bf2acf341e Merge pull request #130628 from googs1025/chore/nodeaffinity
chore(scheduler): add filter integration tests for missing part plugins: NodeAffinity plugin
2025-05-23 04:24:36 -07:00
googs1025
01820ff7c2 chore(scheduler): add filter integration tests for missing part plugins: NodeAffinity plugin
Signed-off-by: googs1025 <googs1025@gmail.com>
2025-05-23 18:02:32 +08:00
Kubernetes Prow Robot
122219790f Merge pull request #131803 from pohly/dra-resource-slice-flake
DRA E2E: reduce risk of flake in ResourceSlice stress test
2025-05-23 02:08:36 -07:00
Arda Güçlü
b0370c483a Promote kuberc to beta
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-05-23 10:56:59 +02:00
Dawei Wei
b35c5c0a30 e2e: Fix shadowed error in reboot test and clean up containers after reboot test (#131699)
* Fix test flakiness caused by shadowed error in reboot test and stale pods affecting eviction test

- Fixed a bug in `ExecCommandInContainerWithFullOutput` usage in `hybrid_network.go` where the `err` variable was shadowed, causing test failures to be silently ignored.
- Added cleanup logic in `eviction.go` to explicitly delete pods created by the reboot node test (e.g., `img-puller`, `reboot-host-test-windows`) before starting the eviction test.
- This improves reliability of the eviction test when the reboot test runs beforehand and leaves behind memory-consuming pods.

* Add cleanup containers in reboot node test

* Workaround for Calico HNS issue by avoiding eviction of undeletable pods

Add a workaround for a known Calico issue (https://github.com/projectcalico/calico/issues/6974) where pods on Windows nodes may become undeletable after a reboot. This causes the eviction manager to attempt evicting these pods but fail due to HNS namespace deletion errors.

The workaround avoids scheduling critical test pods on rebooted nodes to prevent interference.

TODO: Remove this workaround once the Calico issue is resolved.

* Fix the lint issue.

* Address comments
2025-05-22 12:40:35 -07:00
Kubernetes Prow Robot
b5608aea94 Merge pull request #131845 from serathius/unify-metrics
Unify references to group resource in metrics
2025-05-22 07:32:35 -07:00
Kubernetes Prow Robot
fa6d252d84 Merge pull request #131746 from haircommander/e2e-label
e2e: add corresponding featuregate label to node features
2025-05-21 13:02:35 -07:00
sunnylovestiramisu
17946fe799 Add Stress Tests for VolumeAttributesClass 2025-05-21 18:02:52 +00:00
Manjunath A Kumatagi
96e4cc65fb update baseimage 2025-05-21 09:09:46 +00:00
Francesco Romani
d7b6049099 e2e: node: always declare testcase CPU requirements
The PR https://github.com/kubernetes/kubernetes/pull/130274 rewrote the
cpumanager tests assuming there are always at least 4 online CPUs,
adding checks for the tests which require more.

We still have, and likely we will have for the time being, lanes
which run on machines with 2 online CPUs.

Thus, every test which either reserve cpus (--reserved-cpus) or run
pods with exclusive CPU allocation must declare the requisites
and skip if the machine don't provide them.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-21 09:22:33 +02:00
Kubernetes Prow Robot
6da56bd4b7 Merge pull request #131752 from aramase/aramase/f/kep_3331_v1_api
Duplicate v1beta1 AuthenticationConfiguration to v1
2025-05-20 20:54:34 -07:00
Anish Ramasekar
67345417c0 Update tests to use v1 for AuthenticationConfiguration
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-05-20 16:42:23 -07:00
Kubernetes Prow Robot
1d93307673 Merge pull request #131865 from carlory/fix-131834
fix flaky test:  ResourceQuota should verify ResourceQuota with terminating scopes through scope selectors
2025-05-20 13:38:12 -07:00
Morten Torkildsen
b98b86bd6a DRA: Add scheduler perf test for partitionable devices (#131771) 2025-05-20 09:57:16 -07:00
Patrick Ohly
60c36432f2 DRA integration: set up nodes for scheduling
This enables proper scheduling tests. Most of them are probably better done in
scheduler_perf where the same test then can also be used for benchmarking and
creating objects is a bit better supported (from YAML, for example), but some
special cases (in particular, anything involving error injection) are better
done here.
2025-05-20 17:43:30 +02:00
Kubernetes Prow Robot
c40db09a0a Merge pull request #131741 from soltysh/deprecate_preferences
Deprecate kubeconfig's preference field in favor of kuberc
2025-05-20 08:11:18 -07:00
Kubernetes Prow Robot
444e2b4eb0 Merge pull request #131838 from dims/bump-google.golang.org/grpc-to-google-v1.72.1
Bump google.golang.org/grpc to google v1.72.1
2025-05-20 07:07:17 -07:00
carlory
f6fafba424 fix flacky test: ResourceQuota should verify ResourceQuota with terminating scopes through scope selectors
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-05-20 21:57:44 +08:00
Maciej Szulik
8cf5e8db78 Deprecate kubeconfig's preference field in favor of kuberc
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-05-20 13:31:57 +02:00
Kubernetes Prow Robot
d75a5811ef Merge pull request #131843 from pohly/resourcequota-scope-flake
ResourceQuota: partial fix "should verify ResourceQuota with terminating scopes through scope selectors" flake
2025-05-19 12:45:21 -07:00