Commit Graph

3273 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
b508767369 Merge pull request #132655 from ylink-lfs/ci/httpd_removal
ci: remove httpd usage while using agnhost instead
2025-09-05 20:23:24 -07:00
Kubernetes Prow Robot
ef4add4509 Merge pull request #133356 from mayuka-c/issue-133175
Replace usage of deprecated ErrWaitTimeout with recommended method across all Pkgs
2025-09-05 06:43:34 -07:00
Kubernetes Prow Robot
4a79948217 Merge pull request #133473 from roycaihw/psi-cpu-pressure-test
PSI test: add a CPU limit of 500m to cpu-stress-pod
2025-09-03 14:03:15 -07:00
Kubernetes Prow Robot
5dff07fdf9 Merge pull request #133837 from saschagrunert/cni-plugins
Update CNI plugins to v1.8.0
2025-09-03 07:53:15 -07:00
Kubernetes Prow Robot
53fecc7748 Merge pull request #133720 from carlory/cleanup-SizeMemoryBackedVolumes
Drop SizeMemoryBackedVolumes after the feature GA-ed in 1.32
2025-09-02 15:33:13 -07:00
Sascha Grunert
f0be916f7a Update CNI plugins to v1.8.0
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-09-02 08:39:57 +02:00
ylink-lfs
1fd7f308fc ci: remove httpd usage while using agnhost instead 2025-09-01 20:11:18 +08:00
Kubernetes Prow Robot
4f1ac4f7ac Merge pull request #133659 from kannon92/fix-pod-resources-api
Fix panic in PodResources API test when FeatureGates is nil
2025-09-01 03:27:12 -07:00
Patrick Ohly
70cd76c5cf DRA e2e node: skipping resource health disabled test
`framework.WithLabel("[FeatureGate:ResourceHealthStatus:Disabled]")` has no
effect unless a job explicitly uses it in a --label-filter, which is not what
"generic" alpha/beta jobs are meant to do. The test therefore ran in the new
dra-alpha-beta job and failed because it expected the feature to be off.

In addition, the square brackets got added twice (once via the string
parameter, once by `framework.WithLabel`).

There is no generic way to filter out tests in advance which depend on feature
gates to be turned off. In e2e_node tests the active feature gates can be
checked at runtime, so this is what the test now does.
2025-09-01 08:44:39 +02:00
carlory
36cf728281 Drop SizeMemoryBackedVolumes after the feature GA-ed in 1.32
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-08-29 14:01:39 +08:00
Francesco Romani
bf6a55cd06 e2e: node: address linter errors
remove now-unused code

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 13:24:02 +02:00
Francesco Romani
9aed0813e6 e2e: node: cpumgr: replace old testsuite
This final change in the series completes the transition
to the new test suite

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 12:02:27 +02:00
Francesco Romani
c4f7272f62 e2e: node: cpumgr: keep only scaffolding
keep only the test stub, as all the code was already
removed by PR in the series because superseded by
code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
37d678e098 e2e: node: cpumgr: remove old sidecar container tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
666dec8c2f e2e: node: cpumgr: remove old reserved cpus tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
d98069e22c e2e: node: cpumgr: remove old distribute-cpus tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
e2624d0cce e2e: node: cpumgr: remove old smt alignment tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
9e6073304f e2e: node: cpumgr: remove old cfs quota tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Kubernetes Prow Robot
951c286433 Merge pull request #133462 from ffromani/e2e-node-cpumgr-cleanup-prepare
e2e: node: cpumanager: cleanup and tidification before test replacement
2025-08-27 18:29:46 -07:00
Kubernetes Prow Robot
3893eca5ce Merge pull request #133432 from Jpsassine/kep4680-conform-device-plugin-feature
test: Standardize labels for ResourceHealthStatus e2e tests
2025-08-27 18:29:17 -07:00
Kubernetes Prow Robot
ea0b7f79ea Merge pull request #133251 from HirazawaUi/fix-sidecar-container-tests
Fix sidecar containers flaky tests
2025-08-27 16:06:11 -07:00
Kubernetes Prow Robot
0cecf14cfe Merge pull request #133206 from gavinkflam/131475-gocritic-issues-test-e2e-node
Fix gocritic issues - test/e2e_node
2025-08-27 16:05:56 -07:00
Kevin Hannon
4a597f50b4 Fix panic in PodResources API test when FeatureGates is nil
The test was panicking when trying to assign to a nil map in
initialConfig.FeatureGates["KubeletPodResourcesListUseActivePods"] = false.
Added nil check and map initialization to match the pattern used
elsewhere in the same file.

Fixes panic: internal/runtime/maps/runtime_faststr_swiss.go:265

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-22 10:37:47 -04:00
Haowei Cai
ea9d7ff865 PSI test: add a CPU limit of 500m to cpu-stress-pod
The goal is to generate CPU pressure more reliably, especially when the node has plenty of CPUs.
2025-08-11 18:14:28 +00:00
Francesco Romani
8612c57d21 e2e: node: linter fix
fix linter suggestions.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-11 15:14:46 +02:00
Francesco Romani
e839adafb7 e2e: node: cpumanager: move shared code in topology manager tests
The topology manager tests wants to run a subset of cpumanager tests
while checking numa alignment. We should eventually rewrite
these bits to reuse the new and cleaner rewritten cpu manager tests.
For the time being, we move the shared bits in the topology manager
tests, so we are now enabled to remove the remaining obsolete
cpu manager tests with the rewritten ones.

Trivial code movement, no intended behavioral changes.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-11 14:46:07 +02:00
Francesco Romani
af53d97786 e2e: node: cpumanager: move specific helpers
We're nearing the planned replacement of old cpumanager
tests with new ones, so move the remaining utilities
which we will keep using with the new codebase.

Trivial code movement, no intended behavioral changes.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-11 14:46:07 +02:00
Francesco Romani
d86d798eae e2e: node: trivial rename
Since is now all about criprozy, rename utils_linux.go
to better express the purpose.

Trivial code movement, no intended behavioral changes.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-11 14:46:07 +02:00
Francesco Romani
30ca634386 e2e: node: cpumanager: push utilities in util.go
Push more utilities from cpu manager tests to util.go.
This time there is not a clear (or big enough)
them for this set of shared code blocks.

Trivial code movement, no intended behavioral changes.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-11 14:46:07 +02:00
Francesco Romani
bb7cff161c e2e: node: split utilities to learn machine properties
A lot ofe2e_node  tests need to re-learn machine HW
properties to check the correctness of the behavior.
Over time, we start using these utilities among different
test groups (e.g. memory manager tests use cpu manager tests
utilites). So let's de-entangle this state by moving
the shared utilities in a separate util file.

Trivial code movement, no intended behavioral changes.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-11 14:46:07 +02:00
Francesco Romani
1a4e289cfa e2e: node: split kubeletconfig utilities
Is not ideal to heve utilities source file or packages,
because these tend to be unfocused and attract unstructured
code, easily leading to a kitchesink approach.
So, let's start cleaning up by splitting the utilities
we have to deal with kubelet config in its own source file,
lacking bandwidth now for deeper refactorings.

Trivial code movement, no intended behavioral changes.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-11 14:46:02 +02:00
John-Paul Sassine
76bbaa9d47 test: Standardize labels for ResourceHealthStatus e2e tests
This change updates the Ginkgo label for the Device Plugin e2e tests for the ResourceHealthStatus feature.

By switching from `feature.ResourceHealthStatus` to `framework.WithFeatureGate(features.ResourceHealthStatus)`, these tests will now have the `[FeatureGate:ResourceHealthStatus]` label, making them consistent with the new DRA e2e tests for the same feature.

This standardization allows a single presubmit job in `test-infra` to correctly select and run all e2e tests for this feature, ensuring complete test coverage.
2025-08-07 21:40:57 +00:00
Kubernetes Prow Robot
9d3fff5048 Merge pull request #133353 from ffromani/e2e-node-serial-unblock
node: unblock e2e serial lanes
2025-08-06 11:37:25 -07:00
Francesco Romani
aca402f25b e2e: node: skip breaking tests
Skip problematic tests to recover signal, then we will
reintroduce them gradually

See: https://github.com/kubernetes/kubernetes/issues/133314
See: https://github.com/kubernetes/kubernetes/pull/133336

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-01 13:59:32 +02:00
Mayuka Channankaiah
6c56d2fd1b Replace usage of deprecated ErrWaitTimeout with recommended method across all Pkgs 2025-08-01 14:18:06 +05:30
Kevin Hannon
e83e5815e5 always pull pause image for eviction tests 2025-08-01 00:55:10 -04:00
Kubernetes Prow Robot
91731d05e2 Merge pull request #133279 from ffromani/pod-level-resource-managers
[PodLevelResources] handle pod-level resource manager alignment
2025-07-29 17:28:33 -07:00
Francesco Romani
a3a767b37e WIP: fix e2e tests
Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-07-29 20:20:08 +02:00
Kubernetes Prow Robot
ba76d238ad Merge pull request #133259 from ndixita/code-refactor
Adding check for nil pod resources in huge pages test
2025-07-28 23:18:30 -07:00
Kubernetes Prow Robot
dd4e4f1dd1 Merge pull request #133262 from BenTheElder/no-authenticated-image-pulling
remove broken test that depends on expired credential, remove hardcoded credential, add TODOs
2025-07-28 17:28:28 -07:00
Benjamin Elder
8ace0fb89f remove failing test that depends on expired credential, remove credential, add TODOs
see: https://github.com/kubernetes/kubernetes/issues/130271
2025-07-28 15:43:43 -07:00
ndixita
4b698656be Returning early if podResources is nil to avoid nil pointer dereferencing
Signed-off-by: ndixita <ndixita@google.com>
2025-07-28 19:31:08 +00:00
Kevin Torres
766d011bba E2E tests for no hints nor aligment of CPU and Memory managers 2025-07-28 18:53:04 +00:00
HirazawaUi
7c1d133dff Fix sidecar containers flaky tests 2025-07-28 20:24:52 +08:00
Kubernetes Prow Robot
6d4ca967f7 Merge pull request #132824 from roycaihw/psi-pressure-test
Extend E2E test coverage for PSI metrics under pressure
2025-07-25 00:32:27 -07:00
Gavin Lam
908fb0266d Fix gocritic issues
Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
2025-07-24 23:23:43 -04:00
Kubernetes Prow Robot
72f9a9260a Merge pull request #130606 from Jpsassine/dra_device_health_status
Expose DRA device health in PodStatus
2025-07-24 20:14:27 -07:00
Kubernetes Prow Robot
3fd1251165 Merge pull request #131089 from KevinTMtz/pod-level-hugepage-cgroups
[PodLevelResources] Propagate Pod level hugepage cgroup to containers
2025-07-24 19:08:26 -07:00
Kubernetes Prow Robot
63011fe547 Merge pull request #132277 from KevinTMtz/pod-level-resources-eviction-manager
[PodLevelResources] Pod Level Resources Eviction Manager
2025-07-24 16:44:34 -07:00
John-Paul Sassine
b7de71f9ce feat(kubelet): Add ResourceHealthStatus for DRA pods
This change introduces the ability for the Kubelet to monitor and report
the health of devices allocated via Dynamic Resource Allocation (DRA).
This addresses a key part of KEP-4680 by providing visibility into
device failures, which helps users and controllers diagnose pod failures.

The implementation includes:
- A new `v1alpha1.NodeHealth` gRPC service with a `WatchResources`
  stream that DRA plugins can optionally implement.
- A health information cache within the Kubelet's DRA manager to track
  the last known health of each device and handle plugin disconnections.
- An asynchronous update mechanism that triggers a pod sync when a
  device's health changes.
- A new `allocatedResourcesStatus` field in `v1.ContainerStatus` to
  expose the device health information to users via the Pod API.

Update vendor

KEP-4680: Fix lint, boilerplate, and codegen issues

Add another e2e test, add TODO for KEP4680 & update test infra helpers

Add Feature Gate e2e test

Fixing presubmits

Fix var names, feature gating, and nits

Fix DRA Health gRPC API according to review feedback
2025-07-24 23:23:18 +00:00