Commit Graph

3110 Commits

Author SHA1 Message Date
Darren Shepherd
4b9fcc8a33 Add stopCh to apiserver & context to kublet commands
Remove SetupSignalContext call from the apiserver

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2026-06-12 11:47:21 -03:00
aditya
888c785092 Fix startup probe worker termination for sidecar containers
Fixes a bug where startup probe workers terminate incorrectly for sidecar
containers with restartPolicy=Always when the pod has restartPolicy=Never,
causing main containers to remain stuck in Initializing state.

Changes:
- Add container-level restart policy check for init containers only
- Extract complex boolean logic to named variable for readability
- Refactor test helper to use existing newWorker() function
- Add comprehensive unit and e2e tests for both scenarios
2025-10-22 23:17:53 +00:00
Benjamin Elder
a2ef871e58 remove failing test that depends on expired credential, remove credential, add TODOs
see: https://github.com/kubernetes/kubernetes/issues/130271
2025-07-28 16:31:06 -07:00
Davanum Srinivas
d429c8b17d debug cpu_manager_test failure
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-24 19:15:38 -04:00
Kubernetes Prow Robot
62555cadc7 Merge pull request #130701 from roycaihw/psi-metrics
Surface Pressure Stall Information (PSI) metrics
2025-03-24 10:38:33 -07:00
Davanum Srinivas
a75cd2e0f4 Adjust metrics ranges to reflect additional CI job environments
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-23 20:35:01 -04:00
Kubernetes Prow Robot
37afe38abf Merge pull request #130997 from dims/fix-container_spec_memory_swap_limit_bytes-in-ci-cos-cgroupv1-containerd-node-e2e-ci-jobs
Fix container_spec_memory_swap_limit_bytes in ci-cos-cgroupv1-containerd-node-e2e CI jobs
2025-03-23 10:06:33 -07:00
Davanum Srinivas
2bd0481d2c Use established pattern for kubelet metrics url
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-22 07:44:01 -04:00
Davanum Srinivas
0486790592 Fix container_spec_memory_swap_limit_bytes in ci-cos-cgroupv1-containerd-node-e2e CI jobs
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-22 07:28:05 -04:00
Kevin Hannon
a237f429fc Revert "Separate SeparateDiskTests from eviction" 2025-03-21 12:29:30 -04:00
Haowei Cai
c86ff2339d Unit and E2E tests 2025-03-21 15:54:22 +00:00
Kubernetes Prow Robot
23dc170619 Merge pull request #130965 from pacoxu/revert-126794-addRegularContainerImgChangeE2E
Revert "Add e2e test for Regular Container image change"
2025-03-20 23:46:38 -07:00
Kubernetes Prow Robot
c029e2715e Merge pull request #128355 from lengrongfu/feat/add-log
add device-plugin-test e2e log
2025-03-20 20:46:31 -07:00
Paco Xu
2d7518df6d Revert "Add e2e test for Regular Container image change" 2025-03-21 11:01:52 +08:00
Kubernetes Prow Robot
d383020cc8 Merge pull request #130831 from ajaysundark/disable-swap-resize
disable in-place pod vertical scaling for swap enabled pods
2025-03-20 19:38:37 -07:00
Kubernetes Prow Robot
d4d79f039b Merge pull request #126213 from bitoku/kep2371-e2e
[KEP-2371] add test about container metrics from cadvisor
2025-03-20 19:38:31 -07:00
Kubernetes Prow Robot
838f3c0852 Merge pull request #130577 from KevinTMtz/pod-level-hugepages
[PodLevelResources] Pod Level Hugepage Resources
2025-03-20 15:34:38 -07:00
Kubernetes Prow Robot
a9d0f39b8f Merge pull request #126794 from dshebib/addRegularContainerImgChangeE2E
Add e2e test for Regular Container image change
2025-03-20 14:16:31 -07:00
Ajay Sundar Karuppasamy
a09cb22e4d disable in-place vertical pod scaling for non-restartable swappable containers 2025-03-20 20:43:18 +00:00
Kubernetes Prow Robot
48ba25a464 Merge pull request #127484 from haircommander/userns-off-e2e
e2e_node: add a test to verify kubelet fails to create pod if userns isn't supported
2025-03-20 13:08:32 -07:00
Kubernetes Prow Robot
6bc352f6a9 Merge pull request #130535 from ffromani/cpumanager-policy-options-ga
node: kep-2625: cpu manager policy options GA
2025-03-20 11:24:46 -07:00
Kevin Torres
7b38bff6ec Move pod level hugepage test from e2e to e2e node 2025-03-20 17:54:40 +00:00
Kevin Torres
fd50d9207f End to end tests for pod level hugepage resources 2025-03-20 17:54:40 +00:00
Peter Hunt
8b4aab5451 e2e_node: add a test to verify kubelet fails to create pod if userns isn't supported
and the pod requests a user namespace

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2025-03-20 09:34:59 -04:00
Gunju Kim
657ccc3099 Ensure that the pod has the proper phase upon re-initialization
This fixes the pod with restartable init containers to have a proper
phase after the pod sandbox re-creation.

Currently, the `runtime.PodStatus` cannot retrieve the active container
statuses, which are the container statuses associated with the current
pod sandbox. This adds the `ActiveContainerStatuses` to
`runtime.PodStatus`, allowing it to include the container statuses of
the current pod sandbox, and fixes the kubelet to correctly set the pod
Phase to `Pending` when no active regular containers are present.
2025-03-20 17:38:41 +09:00
Francesco Romani
3c7ed00e22 node: kep-2625: cpu manager policy options GA
Move the support for CPUManager Policy Options to GA

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-03-20 08:31:32 +01:00
Kubernetes Prow Robot
ba742a9aec Merge pull request #129574 from p-shah256/imagefs-tests
Separate SeparateDiskTests from eviction
2025-03-19 20:12:33 -07:00
Kubernetes Prow Robot
6ec6faad61 Merge pull request #130681 from saschagrunert/image-volume-subpath-e2e
[KEP-4639] Image volume subpath e2e
2025-03-19 17:54:36 -07:00
Daniel Shebib
1ee7d946d7 WIP add tests for regular container image updates 2025-03-19 19:37:58 -05:00
Sascha Grunert
d7ed3f1c9b Add image volume subpath e2e tests
Adding new test cases for subpath handling for image volumes.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-03-19 20:15:32 +01:00
Kubernetes Prow Robot
1039822a74 Merge pull request #130491 from swatisehgal/cpu-allocation-numa-spread-metric
Add metrics to capture CPU allocation spread across NUMA nodes
2025-03-19 11:52:40 -07:00
Kubernetes Prow Robot
fba63656c9 Merge pull request #130498 from swatisehgal/distribute-across-numa-e2e-tests
node: cpumgr: e2e: Tests for `distribute-cpus-across-numa` policy option
2025-03-19 10:19:06 -07:00
Kubernetes Prow Robot
dc6f70c12d Merge pull request #130290 from nokia/4540-strict-cpu-reservation-beta
KEP-4540: strict-cpu-reservation beta
2025-03-19 10:18:58 -07:00
Swati Sehgal
327ebcffc8 node: cpumgr: e2e: Define constants and use them instead of literals
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 13:19:20 +00:00
Swati Sehgal
c90f0539c8 node: cpumgr: e2e: Tests for distribute-cpus-across-numa policy option
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 13:19:03 +00:00
Swati Sehgal
b6a3ac47de node: cpumgr: e2e: tests for NUMA allocation spread metrics
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 13:13:56 +00:00
Mark Sasnal
5625483527 KEP-4540: added e2e tests for strict-cpu-reservation option 2025-03-18 11:52:25 -04:00
Kubernetes Prow Robot
f8cc9c92d6 Merge pull request #130858 from dims/trying-to-fix-provider-kubelet_config_dir_test
Fix kubelet_config_dir_test after KubeletServiceAccountTokenForCredentialProviders was added
2025-03-17 10:43:49 -07:00
Kevin Hannon
aa187d2d5a add separate container runtime filesystem tests 2025-03-17 12:07:10 -04:00
Davanum Srinivas
410dc1d654 Trying to fix kubelet_config_dir_test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-16 18:38:23 -04:00
Kubernetes Prow Robot
f007012f5f Merge pull request #130700 from pohly/dra-kubeletplugin-helper
DRA kubeletplugin: turn helper into wrapper
2025-03-16 01:55:47 -07:00
Kubernetes Prow Robot
555efba04a Merge pull request #128123 from felipeagger/feat/add-updatepodsandbox-cri-method
[FG:InPlacePodVerticalScaling] Add UpdatePodSandboxResources CRI method
2025-03-14 23:07:46 -07:00
Patrick Ohly
ec12727957 DRA kubeletplugin: revise socket path handling
When supporting rolling updates, we cannot use the same fixed socket paths for
old and new pod. With the revised API, the caller no longer specifies the full
socket paths, only directories. The logic about how to name sockets then can be
in the helper.

While at it, avoid passing a context to the gRPC helper code when
all that the helper code needs is a logger. That leads to confusion
about whether cancellation has an effect.
2025-03-14 14:19:56 +01:00
Filipe Xavier
b27c303ac2 update cri-api runtime interface and cri-client add new method 2025-03-14 09:33:32 -03:00
Francesco Romani
5c17e7bd9c node: cpumgr: metrics: add uncore cache alignment metrics
add missing metric about uncore / L3 / Last-Level cache alignment,
plus its e2e tests.

Exposing uncore alignment requires a bit of refactoring in the static
policy implementation because, differently from full PCPUs alignment
and NUMA alignment, can't be easily and safely inferred by construction.

The main reason for this is that uncore cache alignment is preferred,
not mandatory, thus the cpu allocator can legally use cross-uncore
allocation. Because of that, the final cpuset union step can
create a final cpuset which is not uncore-aligned even though all
its parts are uncore-aligned.

The safest way seems thus to run just a final uncore-alignment check
once the final cpuset is computed.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-03-14 09:08:54 +01:00
Francesco Romani
9cfe1863ce node: e2e: clarify test description
fix test name. Cosmetic only.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-03-14 09:06:21 +01:00
Kubernetes Prow Robot
396c3ebe4c Merge pull request #130711 from lauralorenz/crashloopbackoff-featuregate-reducedefaultcrashloopbackoffdelay
KEP-4603: Add ReduceDefaultCrashLoopBackoffDecay featuregate, feature and unit and e2e tests
2025-03-13 14:55:47 -07:00
Kubernetes Prow Robot
96dd5508f6 Merge pull request #129714 from esotsal/fix-reset-injector-because-cri-proxy-undefined
testing: Skip test if cri proxy is disabled or undefined
2025-03-12 21:19:46 -07:00
Kubernetes Prow Robot
761f5646be Merge pull request #130138 from rata/userns-enabled-by-default
features: Enable user namespaces by default
2025-03-12 20:13:48 -07:00
Kubernetes Prow Robot
7b6c56e5fb Merge pull request #130135 from saschagrunert/image-volume-beta
[KEP-4639] Graduate image volume sources to beta
2025-03-12 18:03:58 -07:00