1174 Commits

Author SHA1 Message Date
Tim Allclair
01470d973b Fix memory limit decrease test on cri-o 2025-08-01 09:56:51 -07:00
Kubernetes Prow Robot
656360f67c Merge pull request #133254 from HirazawaUi/fixinvalid-validation
Fix incorrect validation on the kubelet
2025-07-29 10:12:34 -07:00
Kubernetes Prow Robot
1ef7677415 Merge pull request #133220 from toVersus/fix/downward-api-e2e-failure
[PodLevelResources] Add missing label to Downward API test
2025-07-28 21:06:29 -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
HirazawaUi
6997fbd1ed Fix incorrect validation on the kubelet 2025-07-29 00:02:20 +08:00
Tsubasa Nagasawa
48fd30113c [PodLevelResources] Add missing label to Downward API test 2025-07-26 07:51:58 +09:00
Kubernetes Prow Robot
b09f1bfe12 Merge pull request #132902 from haircommander/userns-metrics
KEP-127: kubelet: add metrics for userns pods
2025-07-24 19:08:41 -07:00
Kubernetes Prow Robot
bd7fb738bd Merge pull request #132605 from toVersus/feat/downward-api-plresources
[PodLevelResources] Update Downward API defaulting for resource limits
2025-07-24 16:44:42 -07:00
Kubernetes Prow Robot
b3d00a026d Merge pull request #132756 from ylink-lfs/ci/redis_removal
ci: redis removal for e2e test dependency simplicity
2025-07-24 09:38:42 -07:00
Kubernetes Prow Robot
6ef2215eb7 Merge pull request #132558 from HirazawaUi/Implement-4762
KEP-4762: Allows setting any FQDN as the pod's hostname
2025-07-23 16:26:27 -07:00
Tsubasa Nagasawa
a82187cf11 [PodLevelResources] Update Downward API defaulting for resource limits
Currently, when container-level resource limits were not specified and
the Downward API was used to set environment variables referencing them,
the node's allocatable resources were used as the fallback.
With the introduction of the Pod Level Resources feature, this behavior
is updated: if container-level resource limits are not specified,
the Downward API now uses the pod-level resource limits instead.
If neither container-level nor pod-level resource limits are specified,
the behavior remains unchanged. It falls back to the node's allocatable
resources.

Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2025-07-24 08:15:36 +09:00
Surya Seetharaman
4c87e60d0d Tests using .host field in probes must be at priviledged level
The sig-node tests have scenarios of doing probes and
lifecycle handler tests with post-start and pre-stop hooks
setting the host field to be another pod.

In baseline level such things won't be allowed because of
the PSA rules we are adding in this PR. So unsetting
the host field means it uses the podIP of self for doing
the checks and using that in the pre-stop and post-start
hooks is tricky because of the timing issues with when the
container is actually up v/s running the test.

So I have changed the tests to be privileded for them to
use the .host fields if they desire to.

See https://github.com/kubernetes/kubernetes/issues/133091
which is an issue opened to properly refactor these tests.

Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
2025-07-23 21:17:05 +02:00
HirazawaUi
8d65e1e98e Add e2e tests. 2025-07-23 22:57:11 +08:00
Bing Hongtao
6f3b6b91f0 KEP-3721: Support for env files (#132626)
* Add FileKeyRef field and struct to the Pod API

* Add the implementation code in the kubelet.

* Add validation code

* Add basic functionality e2e tests

* add codes for drop disabled pod fields

* update go.mod
2025-07-22 13:40:42 -07:00
Peter Hunt
407bcf8864 kubelet: add metrics for userns pods
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2025-07-22 11:05:00 -04:00
Kubernetes Prow Robot
ade9b7746a Merge pull request #132595 from AxeZhan/ga3960
Graduate PodLifecycleSleepAction to GA
2025-07-19 13:22:39 -07:00
sreeram-venkitesh
00bf3b37a7 Graduate PodLifecycleSleepActionAllowZero to GA 2025-07-18 21:35:58 +05:30
Kubernetes Prow Robot
4a80270b30 Merge pull request #133012 from tallclair/mem-lim-decrease
[FG:InPlacePodVerticalScaling] Support reducing memory limits
2025-07-17 17:10:39 -07:00
Tim Allclair
75ae2d727a Add an E2E test for memory limit decrease usage check 2025-07-17 13:17:35 -07:00
Tim Allclair
2a9388c303 Move memory limit decrease e2e test to success cases 2025-07-17 13:17:35 -07:00
Natasha Sarkar
465f728141 use gomega.BeComparableTo instead of Equal for resource quantity check in resize test 2025-07-17 20:09:05 +00:00
Kubernetes Prow Robot
37a7addd0c Merge pull request #132264 from HirazawaUi/promote-to-conformance
Promote RelaxedEnvironmentVariableValidation test to Conformance #132219
2025-07-12 11:31:28 -07:00
Kubernetes Prow Robot
eace307651 Merge pull request #132795 from tallclair/resize-patch
Avoid manually writing resize patches for pod resize E2Es
2025-07-09 12:05:27 -07:00
Kubernetes Prow Robot
09bb45816a Merge pull request #132468 from haircommander/status-retry
e2e: retry getting status on restart policy tests
2025-07-08 18:21:28 -07:00
ylink-lfs
075abb07a9 ci: redis removal for e2e test dependency simplicity 2025-07-08 09:14:54 +08:00
Tim Allclair
ae7d637b89 Delete unused ResizeContainerPatch function 2025-07-07 13:59:32 -07:00
Tim Allclair
f1b35cae91 Use MakeResizePatch instead of hand-written patch strings in resize E2Es 2025-07-07 13:58:40 -07:00
Tim Allclair
00c1c1a58e Generate an E2E resize patch from original & desired ResizableContainerInfo 2025-07-07 13:57:48 -07:00
PatrickLaabs
e74bbd5db4 chore: depr. pointer pkg replacement for test/e2e 2025-07-06 22:32:21 +02:00
Peter Hunt
fd8bf1c821 e2e: retry getting status on restart policy tests
as the containers in a pod restart, the pod may enter exponential backoff, which delays the pod being ready.
In this case for this pod, it's expected, but we shouldn't fail to continue the test before the container has been given the chance to start again

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2025-06-23 14:58:57 -04:00
HirazawaUi
5882df8beb promote env test to conformance 2025-06-12 21:43:03 +08:00
Kubernetes Prow Robot
50773d75b6 Merge pull request #132250 from AxeZhan/test3960
Flaky test fix for KEP3960:  Lifecycle Sleep Hook
2025-06-12 04:41:06 -07:00
AxeZhan
d46e13b9c5 change the command of the terminated container 2025-06-12 16:06:50 +08:00
Kubernetes Prow Robot
926e176094 Merge pull request #128642 from AxeZhan/test3960
Adjust durations for PodLifecycleSleepAction e2e tests.
2025-06-11 17:44:54 -07:00
AxeZhan
69eddde89b using finalizer 2025-06-11 21:49:38 +08:00
Kubernetes Prow Robot
4db16edaa8 Merge pull request #132054 from HirazawaUi/promote-4369-to-ga
[KEP-4369]: Graduate RelaxedEnvironmentVariableValidation to GA
2025-06-10 11:19:02 -07:00
HirazawaUi
ef2c18a5a0 Add more test cases 2025-06-11 00:02:48 +08:00
AxeZhan
9d1bc51cbb adjust durations for sleepAction 2025-06-10 10:52:25 +08:00
HirazawaUi
6a4751da7f Graduate RelaxedEnvironmentVariableValidation Feature gate to GA 2025-06-07 20:32:03 +08: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
Peter Hunt
c5e4cab9b1 e2e: add corresponding featuregate label to node features
there are many cases of an e2e feature being the main filtering mechanism for a test.
However, this makes it tricky for suite authors to filter tests based on available features.
This mechanism is still useful for e.g. making sure a runtime on a suite is of the correct level,
but in general we should both label tests with the Feature set they require (whether runtime is correct) as well
as the feature gates they test.

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2025-05-13 13:14:47 -04:00
Natasha Sarkar
22fa3c747b add retries to exec command in cgroup verification 2025-05-06 18:33:25 +00:00
Hironori Shiina
43ce37ed48 Address feedback 2025-05-01 14:56:28 +02:00
Hironori Shiina
7e1cec680e e2e: Deduplicate cgroup verification
This fix deduplicates cgroup verification in tests for
InPlacePodVerticalScaling and PodLevelResources.
2025-05-01 14:53:26 +02:00
Kubernetes Prow Robot
8aa1d337e9 Merge pull request #131102 from esotsal/debug_131067
[FG:InPlacePodVerticalScaling] Clean code resize test
2025-04-30 15:33:55 -07:00
kevinrizza
903d6d4f03 Don't reinitialize test framework during each test case
This commit updates pod resize tests to resolve an
issue where extraneous unused namespaces are created
when the tests are run. This happens because a new
instance of the test framework is generated when
looping over the test specs, registering BeforeEach each
time.
2025-04-29 09:17:40 -04:00
Sotiris Salloumis
d6b45bc98d [FG:InPlacePodVerticalScaling] clean code resize test
- Improve information when VerifyPodContainersCgroupValues fails
- Use common way to append errors
2025-04-28 18:43:12 +02:00
Kubernetes Prow Robot
af53af19e6 Merge pull request #130211 from carlory/add-intree-driver-for-nfs3
e2e storage test: in-tree driver adds the support for nfs v3
2025-04-24 10:52:31 -07:00
Tim Allclair
947a9f26fa Move pod resize e2e utilities out of e2e/framework 2025-04-23 14:02:36 -07:00