Commit Graph

1294 Commits

Author SHA1 Message Date
Antonio Ojea
09427ab558 Update test/e2e/network/netpol/network_policy_api.go
Co-authored-by: Adrian Moisey <adrian@changeover.za.net>
2025-03-03 08:48:06 +01:00
Antonio Ojea
f8b080a4be Update test/e2e/network/netpol/network_policy_api.go
Co-authored-by: Adrian Moisey <adrian@changeover.za.net>
2025-03-02 18:57:33 +01:00
Antonio Ojea
2f6f8d083e Update test/e2e/network/netpol/network_policy_api.go
Co-authored-by: Adrian Moisey <adrian@changeover.za.net>
2025-03-02 18:57:26 +01:00
Antonio Ojea
e5ad4a1878 e2e network policies test support network policies with finalizers 2025-03-02 13:11:22 +00:00
Dan Winship
f2e8fe93fb Fix bad CIDRs in a NetworkPolicy test
It was writing out IPBlock CIDRs like "192.168.0.5/4" rather than
"192.0.0.0/4".

Also, simplify a bit by basing the `cidr` and the `except` both on
podB, rather than one on podA and one on podB. (This is even
theoretically a bugfix, since it's not _required_ that podA and podB
be in the same /4.) Also reorganize the code to make the two test
cases more consistent with each other.
2025-02-27 09:22:16 -05:00
Kubernetes Prow Robot
0e3a247859 Merge pull request #130083 from elizabeth-dev/replace-network-e2e-replicationcontrollers-5
test(network): replace calls to e2erc.RunRC with Deployments in SIG Network tests
2025-02-18 15:06:26 -08:00
Elizabeth Martin Campos
e15fd43d81 test(network): replace calls to e2erc.RunRC with Deployments in service latency tests
See #119021
2025-02-18 17:42:00 +01:00
Elizabeth Martin Campos
cd0df9786e test(network): replace calls to e2erc.RunRC with Deployments in service proxying tests
See #119021
2025-02-18 17:41:12 +01:00
Elizabeth Martin Campos
e353086e6a test(network): replace RCs with Deployments in util function StartServeHostnameService
See #119021
2025-02-16 14:50:46 +01:00
Kubernetes Prow Robot
78f7217993 Merge pull request #130082 from elizabeth-dev/replace-network-e2e-replicationcontrollers-4
test(network): replace RCs with Deployments in util function jig.Run
2025-02-15 07:44:21 -08:00
Elizabeth Martin Campos
4724870b97 test: remove implicit inclusion of "name" label in utils functions 2025-02-13 12:48:30 +01:00
Elizabeth Martin Campos
0c68aa6a35 test(network): fix jig deployment scaling 2025-02-11 16:22:01 +01:00
Elizabeth Martin Campos
d728eb47dc test(network): replace RCs with Deployments in util function jig.Run
See #119021
2025-02-11 14:48:17 +01:00
Elizabeth Martin Campos
464fd0765d test(network): replace jig.CreateRC with jig.CreateDeployment
See #119021
2025-02-11 10:35:56 +01:00
Kubernetes Prow Robot
00fa8f1190 Merge pull request #129773 from aojea/funny_service_cdir
e2e test should no longer guess the service cidr and instead of use the API
2025-01-23 07:16:58 -08:00
Antonio Ojea
0b38e6cd9e e2e network: remove test for funny ips
The test is super hacky and we'll not be needed once the corresponding
KEP is implemented, better to remove it that trying to fix it
perpetuating the hacky solution.
2025-01-23 14:00:20 +00:00
Antonio Ojea
fdebfb4485 e2e log info on nodeport allocation failures 2025-01-23 08:24:49 +00:00
Kubernetes Prow Robot
45d0fddaf1 Merge pull request #128971 from aojea/servicecidr_ga
KEP-1880 Multiple Service CIDRs: Graduate to GA
2025-01-22 11:12:44 -08: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
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
Kubernetes Prow Robot
ddfd02d568 Merge pull request #129687 from carlory/cleanup-gke
remove gke
2025-01-20 08:46:43 -08:00
Kubernetes Prow Robot
beeb1d2b84 Merge pull request #128850 from toVersus/fix/sidecar-container-named-port
Fix named ports of restartable init containers don't propagate to EndpointSlice
2025-01-20 07:32:35 -08:00
carlory
aaac13fc6a remove gke from e2e 2025-01-20 21:50:46 +08:00
Antonio Ojea
b6c3dfdad5 e2e test for service cidrs
deflake e2e servicecidr test
2025-01-20 13:01:53 +00:00
Antonio Ojea
17030f19b6 e2e services: avoid panic on service creation retry
The test was reusing the same variable for the service on each
iteration, the problem is that when the service creation fails, it
clears out the variable and in the next iteration it panics because is
trying to use a field on that same variable.
2025-01-13 08:02:45 +00:00
carlory
8eb31f8aa1 Fix service's nodePort already allocated
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-01-09 16:15:07 +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
1e55df4985 Merge pull request #129155 from aojea/dns_panic
e2e: don't panic asserting inside wait.Poll
2024-12-12 06:41:17 +00:00
Kubernetes Prow Robot
adecec9407 Merge pull request #129132 from carlory/sig-network
network e2e tests: add feature-gate label when these tests depend feature-gate
2024-12-12 06:40:47 +00:00
Kubernetes Prow Robot
d4bfa1e059 Merge pull request #129049 from npinaeva/curl-timeout
[e2e, service] Add total timeout for affinity check curl command.
2024-12-12 05:29:27 +00:00
Antonio Ojea
353118c047 e2e: don't panic asserting inside wait.Poll 2024-12-11 06:28:32 +00:00
carlory
3698050dc7 network e2e tests: add feature-gate label when these tests depend feature-gate 2024-12-10 11:18:49 +08:00
Nadia Pinaeva
326c84a151 [e2e, service] Add total timeout for affinity check curl command.
Not setting a total timeout for curl may result in hanging command if
the connection succeeded, but the data transfer did not.

Signed-off-by: Nadia Pinaeva <n.m.pinaeva@gmail.com>
2024-12-02 11:55:05 +01:00
Dan Winship
b63593715f Test EndpointSlice in dual-stack e2e tests 2024-11-21 08:42:54 -05:00
Tsubasa Nagasawa
a6e995379a Add test cases for Service with restartable init containers
* Add a test case to verify that specifying a port number
  as the target port for restartable init containers in Service
* Add a failing test case to verify that specifying a named port
  as the target port for restartable init containers in Service
2024-11-19 23:45:03 +09:00
Antonio Ojea
2c23db7311 don't panic inside e2e test 2024-11-02 13:51:46 +00:00
Antonio Ojea
e973b05f89 Revert "Don't stop the next poll when it fails to grab logs" 2024-11-02 09:50:11 +01:00
carlory
bd0c5a40f8 Don't stop the next poll when it fails to grab logs 2024-11-02 13:31:36 +08:00
Kubernetes Prow Robot
f94f87795f Merge pull request #126935 from aojea/proxy_conntrack_service_topology
e2e conntrack test for UDP Service with internalTrafficPolicy local
2024-10-31 10:21:26 +00: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
Kubernetes Prow Robot
dc481fef90 Merge pull request #123981 from lzhecheng/update-traffic-distribution-test
[e2e] Update traffic distribution test
2024-10-01 15:53:49 +01:00
Kubernetes Prow Robot
f2700895a4 Merge pull request #127422 from srivastav-abhishek/go-vet-fix
Go vet fixes for gotip
2024-09-20 14:37:58 +01:00
Abhishek Kr Srivastav
95860cff1c Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com>
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
2024-09-20 12:36:38 +05:30
Tim Hockin
a9189735ac Rename DNS tests and restructure
Get rid if "wheezy" (it's not wheezy) and set it up to process an
arbitrary list of probers, but stop short of adding more.
2024-09-17 12:39:53 -07:00
Tim Hockin
094a11b5cb Revert "Clean up DNS e2e wrt Jessie/Wheezy"
This reverts commit eeb36da2b97e87b3534c7bece9355cefc6f16472.
2024-09-17 10:12:54 -07:00
Tim Hockin
b228aebaf2 Clean up DNS e2e wrt Jessie/Wheezy 2024-09-17 10:12:53 -07:00
Kubernetes Prow Robot
bfd91fbb3e Merge pull request #125222 from danwinship/kind-loadbalancers-4
Fix "updates to ExternalTrafficPolicy" test
2024-09-17 14:05:14 +01:00