Commit Graph

427 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
e0dbdc9d17 Merge pull request #131518 from kevinrizza/pod-resize-test-namespace
Don't create extra namespaces during pod resize tests
2025-04-29 09:18:02 -07:00
Kubernetes Prow Robot
ea08d4df93 Merge pull request #128946 from jackfrancis/SetPVCVACName-eventually-gomega
test: don't panic during an Eventually retry loop
2025-04-29 09:17: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
Kubernetes Prow Robot
30f8f3d146 Merge pull request #131361 from jkyros/fix-inplace-test-wait-quota-status
[FG:InPlacePodVerticalScaling] deflake - wait for resourceQuota status to be populated
2025-04-25 13:35:22 -07:00
John Kyros
00908ce2d1 Wait for resource quota status to be populated
Trying to create a pod using a resourcequota whose status has not been
populated will result in api admission rejecting it with a 403
Forbidden. The pod resize tests do not wait/check to make sure the
resourcequota status is populated before trying to use the quota when
creating a pod, so in scenarious where either the test runs too fast, or
the resourcequota controller is too slow, the tests will fail.

This just makes the test wait up to a minute for the quota status to
populate. The status generation timing/logic gets tested separately in
test/e2e/apimachinery/resource_quota.go, and it waits a minute, so we
wait a minute, but in practice it takes at worst seconds.
2025-04-25 01:09:08 -05:00
Kubernetes Prow Robot
4bcaa515c9 Merge pull request #131267 from tallclair/resize-helpers
Move pod resize e2e utilities out of e2e/framework
2025-04-24 01:28:44 -07:00
Tim Allclair
947a9f26fa Move pod resize e2e utilities out of e2e/framework 2025-04-23 14:02:36 -07:00
Ryan Phillips
58ff3129ad update kubelet_authz.go to new test framework 2025-04-03 15:57:08 -05:00
Natasha Sarkar
83bb5d5705 deflake restart count assertions in in-place resize tests (#131055) 2025-03-27 07:56:40 -07:00
Natasha Sarkar
2350e7a911 deflake pod-resize-resource-quota-test 2025-03-25 21:12:29 +00:00
Kubernetes Prow Robot
dd43c3d29d Merge pull request #130953 from tallclair/ippr-e2e
Run in-place resize tests in default CI jobs
2025-03-21 12:18:31 -07:00
Tim Allclair
16f5fe6a26 Fix infeasible resize test 2025-03-20 19:17:13 -07:00
Tim Allclair
6873e81929 Run in-place resize tests in default CI jobs 2025-03-20 14:44:37 -07:00
Kubernetes Prow Robot
451d032915 Merge pull request #130210 from everpeace/KEP-3619-promote-SupplementalGroupsPolicy-to-Beta
KEP-3619: Promote SupplementalGroupsPolicy feature to Beta
2025-03-20 11:24:37 -07:00
Kubernetes Prow Robot
9193be3aec Merge pull request #130383 from toVersus/chore/e2e-node-aghnhost
[e2e/node] update base image from busybox to agnhost
2025-03-20 09:22:40 -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
Shingo Omura
4055b1a9b5 KEP-3619: update e2e test to check a pod with SupplementalGroupsPolicy=Strict should be rejected when the node does not support the feature 2025-03-20 13:45:23 +09:00
Natasha Sarkar
1889e0cad6 scheduler sets observedGeneration in pod conditions 2025-03-19 15:45:41 +00:00
Natasha Sarkar
4c2be4bdde kubelet sets observedGeneration in conditions 2025-03-18 15:43:24 +00:00
Natasha Sarkar
a15520fbea Move pod resize status to pod conditions 2025-03-17 22:01:05 +00:00
Jack Francis
53499d97ee prefer error over bool, prefer Should(gomega.Succeed())
Signed-off-by: Jack Francis <jackfrancis@gmail.com>
2025-03-13 16:15:24 -07:00
Jack Francis
d54ff7441e test: don't panic during an Eventually retry loop
Signed-off-by: Jack Francis <jackfrancis@gmail.com>
2025-03-13 13:57:55 -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
40e7d88f02 Kubelet sets pod.status.observedGeneration behind FG 2025-03-06 22:31:04 +00:00
Kubernetes Prow Robot
5d28e86245 Merge pull request #130097 from bitoku/podrejectionstatus
Modify how to check the status in PodRejectionStatus test
2025-03-02 18:52:57 -08: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
Tsubasa Nagasawa
2feecd46bd [e2e/node] update base image from busybox to agnhost
Since around 2024/11/27, a Node E2E test that repeatedly creates Pods
and checks whether they terminate with the expected exit code has
occasionally ended with exit code 2, making it flaky.

There have been no changes in kubelet that would modify the exit code
before 2024/11/27, so the cause is likely elsewhere.

Rather than an issue with the container runtime, it is possible that
the problem lies in the BusyBox base image. To narrow down the cause,
we will replace the base image from BusyBox to Agnhost.

Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2025-02-24 11:24:40 +09:00
Tim Allclair
ddd4c56893 Fix pod resize E2E tests after forbidding memory limit decrease 2025-02-21 15:46:33 -08:00
Kubernetes Prow Robot
afbbdbedc2 Merge pull request #128685 from AnishShah/fix-ippr-test
[FG:InPlacePodVerticalScaling]  assert specific error occurred in tests
2025-02-19 17:06:26 -08:00
Ayato Tokubi
953954168c Modify how to check the status
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2025-02-11 18:33:24 +00:00
Vinayak Goyal
81f09811ca Fix kubelet_authz_test.go 2025-01-31 15:38:18 +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
Kubernetes Prow Robot
0d988d7209 Merge pull request #129619 from ffromani/sig-node-approvers-ffromani
Self-nominating ffromani as approver for sig-node container and resource managers
2025-01-21 15:50:36 -08:00
Kubernetes Prow Robot
3d2ee2fbb7 Merge pull request #129609 from carlory/cleanup-exec-utils
Move some exec helper functions from framework/volume to framework/pod
2025-01-21 09:00:37 -08:00
Kevin Hannon
bae4122f56 deprecate nodefeature for feature labels 2025-01-20 17:02:59 -05:00
carlory
aaac13fc6a remove gke from e2e 2025-01-20 21:50:46 +08:00
carlory
8b4eae24ab Move some exec helper functions from framework/volume to framework/pod 2025-01-18 21:42:42 +08:00
Francesco Romani
8221e28e4d Add ffromani as approver for kubelet resource managers and their tests
Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-01-14 13:18:40 +01:00
Kevin Hannon
8495df64b2 deprecate nodefeature for feature labels 2024-12-17 13:58:12 -05: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
Anish Shah
36144e0708 test: add a check that a specific error has occurred. 2024-11-12 15:45:51 -08:00
Tim Allclair
4bbc6f1c2c Move pod_resize tests out of alpha 2024-11-09 14:29:02 -08:00
carlory
f0f319c6af Make fake node as ready but unschedulable 2024-11-08 18:12:18 +08:00
Kubernetes Prow Robot
9660e5c4cd Merge pull request #127360 from knight42/feat/split-stdout-stderr-server-side
API: add a new `Stream` field to `PodLogOptions`
2024-11-07 19:44:45 +00:00
carlory
ba70c764c0 mark the status of fake node as NotReady 2024-11-07 21:26:22 +08:00
Jian Zeng
1a2c557d44 test: add e2e test
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2024-11-07 13:52:16 +08:00
Anish Shah
5dbb793207 test: fix InPlacePodVerticalScaling e2e tests 2024-11-06 07:35:33 +00:00