Commit Graph

1280 Commits

Author SHA1 Message Date
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
Antonio Ojea
79ef4668cd remove obsolete test ClusterDns [Feature:Example] [Feature:Networking-IPv4] should create pod that uses DNS 2024-09-17 09:11:11 +00:00
Dan Winship
a6b08a8ea4 Refactor "updates to ExternalTrafficPolicy" test
The LoadBalancer test "should handle updates to ExternalTrafficPolicy
field" had a bunch of problems, but the biggest is that (without doing
[Disruptive] things to the cluster or making unwarranted assumptions
about source IPs) it's very hard to *prove* that the cloud load
balancer is doing Cluster traffic policy semantics (distributing
connections to all nodes) rather than Local (distributing only to
nodes with endpoints).

So split the test into 2 new tests with more focused semantics:

  - "should implement NodePort and HealthCheckNodePort correctly when
    ExternalTrafficPolicy changes" (in service.go) tests that the
    service proxy is correctly implementing the proxy side of
    Cluster-vs-Local traffic policy for LoadBalancer Services, without
    testing the cloud load balancer itself at all.

  - "should target all nodes with endpoints" (in loadbalancer.go)
    complements the existing "should only target nodes with
    endpoints", to ensure that when a service has
    `externalTrafficPolicy: Local`, and there are endpoints on
    multiple nodes, that the cloud is correctly configured to target
    all of those endpoints, not just one.
2024-09-16 18:17:09 -04:00
Antonio Ojea
b98a3fef37 e2e test ClusterDns [Example] does not support IPv6 2024-09-15 07:27:50 +00:00
Adrian Moisey
8e3adc4df6 KEP-4427 : AllowRelaxedDNSSearchValidation (#127167)
* KEP-4427 : AllowRelaxedDNSSearchValidation

* Add e2e test with feature gate to test KEP-4427 RelaxedDNSSearchValidation

* Add more validatePodDNSConfig test cases

Also update Regex to match the case we want.

Thanks Tim and Antonio!
2024-09-12 09:41:19 +01:00
Dan Winship
8e8bef66f6 Refactor endpoint/execpod antiaffinity
Also make launchHostExecPod return a fully-filled-in Pod object.
2024-09-11 14:21:55 -04:00
Antonio Ojea
2c38ae726a fix typo on ServiceCIDR e2e test title 2024-09-09 11:06:52 +00:00
Antonio Ojea
93aa0b056e add feature gate to ServiceCIDR e2e test 2024-09-09 11:06:33 +00:00
Antonio Ojea
e90b6b969e fix spelling error 2024-09-08 14:00:09 +00:00
Antonio Ojea
f299473ce4 fix linter errors 2024-09-08 12:32:11 +00:00
Antonio Ojea
853b24b398 adapt iperf2 parser to new version format 2024-09-08 11:47:33 +00:00
Antonio Ojea
7e9442264b e2e regression test for Service with internalTrafficPolicy local 2024-08-28 14:22:53 +00:00
Daman Arora
3a942490b5 e2e/network/proxy: fix e2e assertions
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-08-23 20:46:21 +05:30
Dan Winship
a3b97b118b Fix the localhost nodeport metrics test to not fail under non-kube-proxy
If the cluster is using a non-kube-proxy service proxy, the `curl`
will presumably fail; this should not be considered a hard failure.
2024-08-21 09:44:42 -04:00
Antonio Ojea
046e976bab cap the num of nodes on the noSNAT test and remove slow and NoSNAT tag
run NoSNAT network test between pods without any feature tag
2024-07-23 16:27:11 +00:00