Commit Graph

3671 Commits

Author SHA1 Message Date
Antonio Ojea
db3ae754b1 e2e network: adapt dual stack tests for endpoint slices only 2025-01-22 10:20:28 +00:00
Kubernetes Prow Robot
a271299643 Merge pull request #129717 from esotsal/fix-128837
testing: Fix pod delete timeout failures after InPlacePodVerticalScaling Graduate to Beta commit
2025-01-21 15:50:47 -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
carlory
c68fc01b77 return an error instead of recording a test failure
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-01-21 23:43:48 +08:00
Sotiris Salloumis
c5fc4193bb Fix pod delete issues in podresize tests 2025-01-21 07:25:14 +01:00
Dan Winship
969ecabc0f Remove all references to v1.Endpoints from non-network e2e tests
kube-proxy does not look at Endpoints ever, so it is incorrect for a
test to assume that there is any correlation between whether Endpoints
exist and whether a Service is working. Tests should only be using the
v1.Endpoints API if they are explicitly testing the behavior of
v1.Endpoints, the Endpoints controller, or the EndpointSlice mirroring
controller. There is no reason for any non SIG Network tests to be
testing any of those things, so there should be no references to
v1.Endpoints in test/e2e outside of test/e2e/network.

Also, simplify some pointlessly complicated e2eservice code.
2025-01-20 17:04:46 -05:00
Dan Winship
da5bf27bc5 Remove no-longer-used TestUnderTemporaryNetworkFailure()
This was previously used by some autoscaling tests that have since
been removed. It is somewhat sketchy (and inherently [Disruptive]),
and depends on iptables (so would need to be updated to use nftables
at some point if we were keeping it). Given that it's now unused, just
remove it (as well as some helper functions that are no longer used by
anyone else as well).
2025-01-20 17:04:32 -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
Kubernetes Prow Robot
6746df77f2 Merge pull request #127153 from Anurag252/master
Add a static NodePort allocator for e2e tests
2025-01-02 16:56:14 +01:00
Anurag252
a9b641464e chore: adding support for staticPortRange
Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

chore: implementing review comments

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

lint: implementing linting suggestions

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

chore: review comments implementation

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

chore: fixing build errors

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

revert: removing empty spaces

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

chore: implementing review suggestions

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

chore: implementing review comments to get rid of typecasting

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

fix: fixing failed tests

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

fix: fixing failed tests

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

fix: fixing failed tests

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

chore: rename func as per code review

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>

chore: change in comments

Signed-off-by: Anurag252 <Anuragsgsits@gmail.com>
2024-12-30 22:26:43 +01: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
Kubernetes Prow Robot
5cc6f6633f Merge pull request #129070 from zhifei92/fix-typo
e2e_node: Simplify the code logic
2024-12-13 12:24:25 +01:00
Kubernetes Prow Robot
2b8b276de8 Merge pull request #128796 from carlory/fix-framework-IgnoreNotFound
Fix a bug in framework.IgnoreNotFound
2024-12-12 02:58:10 +00:00
zhifei92
cb74323e07 refactor: Simplify the code logic. 2024-12-03 20:31:09 +08:00
Kensei Nakada
89e23dd038 fix(e2e): retry on conflict when deleting extended resource 2024-11-24 16:46:18 +09:00
Tim Allclair
7c3a9d65fc Don't set default resize policy in E2E tests 2024-11-21 09:54:37 -08:00
carlory
cd6f4153e0 Fix a bug in framework.IgnoreNotFound where it will panic when a function type's final input parameter is a "..." parameter. 2024-11-14 16:44:04 +08:00
ndixita
99a6153a4f e2e tests
Signed-off-by: ndixita <ndixita@google.com>
2024-11-08 03:00:54 +00:00
zhifei92
bed96b4eb6 fix: fix the issue of losing the pending phase after a node restart. 2024-11-07 21:10:11 +08:00
Kubernetes Prow Robot
9ba42a54a6 Merge pull request #128521 from carlory/framework-job
improve the code in test/e2e/framework/job/wait.go
2024-11-06 22:07:36 +00:00
carlory
f78c903537 improve the code in test/e2e/framework/job/wait.go 2024-11-06 18:23:41 +08:00
Kubernetes Prow Robot
833ee8502e Merge pull request #128194 from AnishShah/extended-resource
test: refactor logic to add/remove extended resources
2024-11-06 10:01:37 +00:00
Anish Shah
6191879999 apply feedback 2024-11-05 17:14:53 -08:00
Kubernetes Prow Robot
f81a68f488 Merge pull request #128377 from tallclair/allocated-status-2
[FG:InPlacePodVerticalScaling] Implement AllocatedResources status changes for Beta
2024-11-05 23:21:49 +00:00
Kubernetes Prow Robot
246352a43a Merge pull request #126605 from AndrewSirenko/bump-resizer
Fix storage E2E VolumeAttributesClass tests
2024-11-05 23:21:28 +00:00
Kubernetes Prow Robot
f64eeb523d Merge pull request #128096 from bart0sh/PR161-e2e_node-consolidate-NFSServer-APIs
e2e_node: consolidated NFSServer APIs.
2024-11-05 00:33:35 +00:00
Kubernetes Prow Robot
6cb5ea56cb Merge pull request #128484 from carlory/improve-error
improve error message format for WaitForPodSuccessInNamespaceTimeout
2024-11-03 02:19:27 +00:00
Tim Allclair
9d28cc0413 Improve resize test debugability 2024-11-01 14:02:58 -07:00
Tim Allclair
45b1104878 Fix resize E2E tests 2024-11-01 14:02:58 -07:00
carlory
529ad9029d improve error message format for WaitForPodSuccessInNamespaceTimeout 2024-11-01 14:33:07 +08:00
carlory
f36042dc5c gomega forces Eventually to apply a default timeout even when a context is provided. 2024-11-01 11:37:04 +08:00
Kubernetes Prow Robot
7529696b59 Merge pull request #128334 from mimowo/job-windows-e2e-test
Job Pod Failure policy refactor e2e test using exit codes
2024-10-30 11:21:25 +00:00
Kubernetes Prow Robot
e8a75ac53f Merge pull request #128420 from tallclair/e2e-cleanup
Reuse cached client config for exec requests in e2e
2024-10-30 00:17:37 +00:00
Tim Allclair
2407a49956 Reuse cached client config for exec requests in e2e 2024-10-29 10:00:11 -07:00
Michal Wozniak
af772412be Job Pod Failure policy refactor e2e test to pass on Windows 2024-10-28 07:23:40 +01:00
Antonio Ojea
ad0bc4857b e2e: stop controller if context cancelled 2024-10-27 21:23:00 +00:00
Kubernetes Prow Robot
eb10b9b979 Merge pull request #128107 from alaypatel07/kep-4017-integration-tests
[KEP-4017]: update e2e and integration test for PodIndexLabel
2024-10-25 20:18:52 +01:00
Alay Patel
0aa065ab7e update e2e and integration test for PodIndexLabel
Signed-off-by: Alay Patel <alayp@nvidia.com>
2024-10-25 12:17:19 -04:00
carlory
aa3e1fbf35 Fix volume modify e2e tests because pv controller set the current vac once the pvc is bound 2024-10-23 14:27:59 -04:00
Anish Shah
5bf2c6a367 fix Go comments
Co-authored-by: Sheng Zhan <49895476+AxeZhan@users.noreply.github.com>
2024-10-23 00:24:28 -07:00
Anish Shah
73f7c1908a test: refactor logic to add/remove extended resources 2024-10-18 16:53:52 -07:00
Kubernetes Prow Robot
ec16c90aaf Merge pull request #126593 from stlaz/trustbundles-e2e
KEP-3257: e2e: extend cluster trust bundles coverage
2024-10-19 00:51:03 +01:00
Stanislav Láznička
3ec3736d66 e2e: extend cluster trust bundles coverage 2024-10-18 12:30:13 +02:00
Anish Shah
3e6df4a871 test: remove container runtime check and fix other nits 2024-10-17 17:14:04 -07:00
Anish Shah
d72c7319f8 test: refactor duplicate inplace pod resize test utilities 2024-10-17 05:35:40 -07:00
zhifei92
2e182e736b feat: Add cri proxy for e2e_node
add example of using CRI proxy

fix:  Invalid function call

fix:  Optimize getPodImagePullDuration

fix:  Return error if the CRI Proxy is undefined

chore:  add a document
2024-10-16 20:53:28 +08:00
Ed Bartosh
b69f410f43 e2e_node: consolidated NFSServer APIs. 2024-10-15 23:30:27 +03:00
Patrick Ohly
e43065d542 e2e daemon set: better polling in CheckDaemonStatus
As a quick fix for a flake, bceec5a3ff
introduced polling with wait.Poll in all callers of CheckDaemonStatus.

This commit reverts all callers to what they were before (CheckDaemonStatus +
ExpectNoError) and implements polling according to E2E best practices
(https://github.com/kubernetes/community/blob/master/contributors/devel/sig-testing/writing-good-e2e-tests.md#polling-and-timeouts):

- no logging while polling
- support for progress reporting while polling
- last but not least, produce an informative failure message in case of a
  timeout, including a dump of the daemon set as YAML
2024-10-15 10:12:28 +02:00
Antonio Ojea
bceec5a3ff e2e flake CheckDaemonStatus assert on async value
The util for checking on daemonstatus was checking once if the Status of
the daemonset was reporting that all the desired Pods are scheduled and
ready.

However, the pattern used in the e2e test for this function was not
taking into consideration that the controller needs to propagate the Pod
status to the DeamonSet status, and was asserting on the condition only
once after waiting for all the Pods to be ready.

In order to avoid more churn code, change the CheckDaemonStatus
signature to the wait.Condition type and use it in a async poll loop on
the tests.
2024-10-14 13:30:03 +00:00