Commit Graph

297 Commits

Author SHA1 Message Date
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
Tim Allclair
947a9f26fa Move pod resize e2e utilities out of e2e/framework 2025-04-23 14:02:36 -07:00
Natasha Sarkar
5c7491bf08 accept rounded container cpu limits in container cgroup tests (#131059) 2025-03-27 23:40:34 -07:00
Natasha Sarkar
83bb5d5705 deflake restart count assertions in in-place resize tests (#131055) 2025-03-27 07:56:40 -07:00
James Sturtevant
2073252d5a Ginkgo skip needs to run inside leaf node otherwise it panics
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
2025-03-25 06:59:26 -07:00
Sreeram
f035e37c4b Added e2e test and fixed existing pod test 2025-03-25 02:05:30 +05:30
Tim Allclair
6873e81929 Run in-place resize tests in default CI jobs 2025-03-20 14:44:37 -07:00
Kubernetes Prow Robot
52ab771774 Merge pull request #130917 from vinaykul/ippr-mem-req-ucr
Invoke UpdateContainerResources or trigger container restarts when memory requests are resized
2025-03-20 13:08:56 -07:00
Shingo Omura
586af6b568 KEP-3619: move SupplementalGroupsPolicy e2e test from /e2e/node/ to /e2e/common/node/ 2025-03-20 13:46:01 +09:00
vinay kulkarni
917c4b310b Fix lint issues, use kuberuntime's minGracePeriod const, boost container restart wait period 2025-03-19 13:26:01 +00:00
vinay kulkarni
d5d008a6bd Invoke UpdateContainerResources or trigger container restarts (for RestartContainer policy) when memory requests are resized 2025-03-19 06:33:27 +00:00
Rodrigo Campos
0524c80786 e2e/node: Remove outdated comment
Userns only supported those volumes in k8s 1.25 and 1.26. Let's remove
the outdated comment.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-18 11:44:42 +01:00
Rodrigo Campos
c11077f417 e2e/node: Skip userns tests on windows
While they have the LinuxOnly part, other tests have that and this
e2eskipper line. Let's add it just in case.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-18 11:44:09 +01:00
Rodrigo Campos
c984f0f08a tests/e2e: Add tests for userns kubelet mappings
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-18 11:29:34 +01:00
lauralorenz
256a576651 Add featuregate, feature and unit and e2e tests
Signed-off-by: lauralorenz <lauralorenz@google.com>
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2025-03-12 23:43:16 +00:00
Anish Ramasekar
2090a01e0a add e2e test with the gcp-credential-provider test plugin
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-03-11 20:36:36 -07:00
Kubernetes Prow Robot
07d66d9c26 Merge pull request #130574 from natasha41575/drop_proposed_resize_status
[FG:InPlacePodVerticalScaling] Drop `Proposed` resize status
2025-03-11 09:49:46 -07:00
Natasha Sarkar
8a20e90839 [FG:InPlacePodVerticalScaling] Drop 'Proposed' resize status 2025-03-10 20:46:02 +00:00
Natasha Sarkar
f91105a77e fix prep and validation for pod subresource updates 2025-02-28 16:51:10 +00:00
Kubernetes Prow Robot
b14fad5adc Merge pull request #130181 from natasha41575/apiserver-generation
start setting pod metadata.generation
2025-02-24 10:48:29 -08:00
Natasha Sarkar
d02401dea9 start setting pod metadata.generation 2025-02-24 16:22:14 +00:00
Tim Allclair
ddd4c56893 Fix pod resize E2E tests after forbidding memory limit decrease 2025-02-21 15:46:33 -08:00
Ed Bartosh
f6090185a8 e2e: fix node conformance flake
The test `Pods should support retriving logs from the container
over websockets` flakes as it doesn't always wait until
container is running and is able to produce expected output.
Waiting for pod to be in the `Running` state is not enough
as it doesn't mean that container is running.

Waiting for container to be in `Running` state should fix
the test.
2025-02-14 20:19:17 +02:00
Kubernetes Prow Robot
f77a1728be Merge pull request #130009 from kannon92/fix-runtime-class-flake
aim to fix runtime class error
2025-02-12 10:48:20 -08:00
Kevin Hannon
f75965e5d9 aim to fix runtime class error 2025-02-11 13:54:39 -05:00
vivzbansal
ab964a776c Fix e2e tests failure 2025-01-27 19:46:55 +00:00
Anish Shah
9a5c57817a test: pod-resize tests for sidecar containers 2025-01-27 19:46:54 +00:00
vivzbansal
6c5cf68722 Resolved latest review comments 2025-01-27 19:46:33 +00:00
vivzbansal
0e392f9017 Disable e2e test for now 2025-01-27 19:42:13 +00:00
vivzbansal
d1fac494f4 resolve merge conflicts 2025-01-27 19:42:13 +00:00
Kubernetes Prow Robot
29bf17b6cf Merge pull request #129168 from kannon92/drop-node-features
[KEP-3041] - remove nodefeatures from k/k repo
2025-01-23 12:07:29 -08:00
Sotiris Salloumis
c5fc4193bb Fix pod delete issues in podresize tests 2025-01-21 07:25:14 +01:00
Kevin Hannon
bae4122f56 deprecate nodefeature for feature labels 2025-01-20 17:02:59 -05:00
Kubernetes Prow Robot
46708fa09e Merge pull request #128809 from bitoku/pod-test
Change way to create a pod in test
2025-01-17 17:52:34 -08:00
Kubernetes Prow Robot
2d0a4f7556 Merge pull request #129166 from kannon92/move-node-features-to-features
[KEP-3041]: deprecate nodefeature for feature labels
2025-01-14 20:02:33 -08:00
Kevin Hannon
8495df64b2 deprecate nodefeature for feature labels 2024-12-17 13:58:12 -05:00
Kevin Hannon
6a608c3cdb drop NodeSpecialFeature and NodeAlphaFeature from e2e-node 2024-12-16 09:29:04 -05:00
Kubernetes Prow Robot
46f0b3fc13 Merge pull request #128920 from tallclair/ippr-defaults
[FG:InPlacePodVerticalScaling] Remove ResizePolicy defaulting
2024-12-14 03:04:25 +01:00
Anish Shah
1b15876e26 test: reduce container resources in in-place pod resize tests
reducing the container resources used in in-place pod resize tests will
help us run tests in parallel.
2024-12-13 10:32:52 -08:00
Tim Allclair
7c3a9d65fc Don't set default resize policy in E2E tests 2024-11-21 09:54:37 -08:00
Paco Xu
03a15fa65d Revert "[FG:InPlacePodVerticalScaling] Graduate to Beta" 2024-11-20 14:55:29 +08:00
Ayato Tokubi
30a7664c3f Change way to create a pod in test
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2024-11-15 00:40:03 +00:00
Tim Allclair
18600f43e0 Min cpu limit resize e2e test 2024-11-12 17:23:36 -08:00