Commit Graph

29 Commits

Author SHA1 Message Date
Anish Ramasekar
4cd09e15cf
update dual-stack test description to remove alpha
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2021-03-12 09:58:50 -08:00
wojtekt
749922fa46 Cleanup SIGDescribe in test/e2e/network 2021-02-27 20:29:27 +01:00
Kubernetes Prow Robot
ed6b4797a1
Merge pull request #98690 from fedepaol/hosttoservicedualstack
Dual stack tests: cover hostnetwork endpoints on dual stack
2021-02-02 10:46:28 -08:00
Federico Paolinelli
b74cafd43a Dual stack tests: cover hostnetwork endpoints on dual stack
This creates a test similar to "should function for service endpoints using hostNetwork"
for dual stack tests, using the secondary clusterip / nodeip.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2021-02-02 10:58:49 +01:00
Federico Paolinelli
ab9e5a59fa Network tests: check for errors when dialing from node to services
The current implementation does not check for errors, so any failure in
DialFromNode won't float.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2021-02-01 17:12:34 +01:00
Antonio Ojea
ad043f2bdd e2e dualstack test fixes
remove unused variables and fix comments
2020-11-16 23:18:30 +01:00
Antonio Ojea
ed694a1bf6 add e2e test for dual-stack secondary service IPs
Dual stack services can have two ClusterIPs, we already have tests that
exercise the connectivity from different scenarios to the first
ClusterIP of the service.

This PR adds a new functionality to the e2e network utils to enable
DualStack services, and replicate the same tests but using the
secondary ClusterIP, so we cover the connectivity to both cluster IPs.
2020-11-12 10:07:04 +01:00
Christopher M. Luciano
8f384ce972
dualstack: Use Agnhost in place of BusyBox
There is a large effort to use Agnhost to limit dependencies and
overall image size.

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-11-10 16:44:06 -05:00
Christopher M. Luciano
dfbda1dc40
dualstack: cleanup IsIPv4 duplicates in favor of utils
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-11-05 14:29:23 -05:00
Kubernetes Prow Robot
f00ec1b449
Merge pull request #95679 from EdDev/test-e2e-remove-w8-4-pod-running-after-createsync
test, e2e: Remove duplication when using PodClient.CreateSync
2020-10-27 15:32:11 -07:00
Khaled Henidak (Kal)
6675eba3ef
dual stack services (#91824)
* api: structure change

* api: defaulting, conversion, and validation

* [FIX] validation: auto remove second ip/family when service changes to SingleStack

* [FIX] api: defaulting, conversion, and validation

* api-server: clusterIPs alloc, printers, storage and strategy

* [FIX] clusterIPs default on read

* alloc: auto remove second ip/family when service changes to SingleStack

* api-server: repair loop handling for clusterIPs

* api-server: force kubernetes default service into single stack

* api-server: tie dualstack feature flag with endpoint feature flag

* controller-manager: feature flag, endpoint, and endpointSlice controllers handling multi family service

* [FIX] controller-manager: feature flag, endpoint, and endpointSlicecontrollers handling multi family service

* kube-proxy: feature-flag, utils, proxier, and meta proxier

* [FIX] kubeproxy: call both proxier at the same time

* kubenet: remove forced pod IP sorting

* kubectl: modify describe to include ClusterIPs, IPFamilies, and IPFamilyPolicy

* e2e: fix tests that depends on IPFamily field AND add dual stack tests

* e2e: fix expected error message for ClusterIP immutability

* add integration tests for dualstack

the third phase of dual stack is a very complex change in the API,
basically it introduces Dual Stack services. Main changes are:

- It pluralizes the Service IPFamily field to IPFamilies,
and removes the singular field.
- It introduces a new field IPFamilyPolicyType that can take
3 values to express the "dual-stack(mad)ness" of the cluster:
SingleStack, PreferDualStack and RequireDualStack
- It pluralizes ClusterIP to ClusterIPs.

The goal is to add coverage to the services API operations,
taking into account the 6 different modes a cluster can have:

- single stack: IP4 or IPv6 (as of today)
- dual stack: IPv4 only, IPv6 only, IPv4 - IPv6, IPv6 - IPv4

* [FIX] add integration tests for dualstack

* generated data

* generated files

Co-authored-by: Antonio Ojea <aojea@redhat.com>
2020-10-26 13:15:59 -07:00
Edward Haas
c104671401 test, e2e: Remove duplication when using PodClient.CreateSync
The CreateSync method includes the waiting for the pod to become running
and returns a fresh new pod instance.
In addition, errors are asserted in the method.

Therefore, there is no need for the callers to repeat these operations.
Some, like the error assertions, will never be reached in case they
occur as they will explode from within the method itself.

Signed-off-by: Edward Haas <edwardh@redhat.com>
2020-10-18 15:42:06 +03:00
drfish
dfab6b637f Update .import-aliases for e2e test framework 2020-03-25 11:40:02 +08:00
Kenichi Omichi
2c8955fd4a Use e2epod.WaitForPodNameRunningInNamespace directly
WaitForPod*() are just wrapper functions for e2epod package, and they
made an invalid dependency to sub e2e framework from the core framework.
So this replaces WaitForPodRunning() with the e2epod function.
2020-03-17 00:13:14 +00:00
Mike Danese
aaf855c1e6 deref all calls to metav1.NewDeleteOptions that are passed to clients.
This is gross but because NewDeleteOptions is used by various parts of
storage that still pass around pointers, the return type can't be
changed without significant refactoring within the apiserver. I think
this would be good to cleanup, but I want to minimize apiserver side
changes as much as possible in the client signature refactor.
2020-03-05 14:59:46 -08:00
Claudiu Belu
f7942290af tests: Replaces images used with agnhost (part 4)
Quite a few images are only used a few times in a few tests. Thus,
the images are being centralized into the agnhost image, reducing
the number of images that have to be pulled and used.

This PR replaces the usage of the following images with agnhost:

- resource-consumer-controller
- test-webserver
2020-02-18 16:29:49 -08:00
Mike Danese
25651408ae generated: run refactor 2020-02-08 12:30:21 -05:00
Mike Danese
3aa59f7f30 generated: run refactor 2020-02-07 18:16:47 -08:00
Antonio Ojea
fe10c702d2
e2e dual stack retry getting endpoints
the test that need to check the endpoints are flaky.
It retries to get the endpoints several times before failing.
2020-01-29 16:37:23 +01:00
clarklee92
c4ad07b0b1 e2e: move funs of framework/service to e2e/network
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-12-11 20:13:34 +08:00
Dan Winship
52b366457f Add Namespace to e2eservice.TestJig, make all methods use jig namespace and name
Many TestJig methods made the caller pass a serviceName argument, even
though the jig already has a name, and every caller was passing the
same name to each function as they had passed to NewTestJig().

Likewise, many methods made the caller pass a namespace argument, but
only a single test used more than one namespace, and it can easily be
rewritten to use two test jigs as well.
2019-10-18 08:37:19 -04:00
Anish Ramasekar
50e2182faf
e2e test for dualstack phase2
dual-stack phase2 tests

update e2elog to framework

run update-bazel

update comment

fix go vet error

Review feedback

update method

Review feedback
2019-10-10 16:24:39 -07:00
Dan Winship
3c445b2ad0 Add e2enode.GetBoundedReadySchedulableNodes, replace some uses of framework.GetReadySchedulableNodesOrDie
For tests that want at-most-N nodes
2019-09-24 13:03:40 -04:00
Dan Winship
71b02dd422 Fix up e2enode.GetReadySchedulableNodes, replace many uses of framework.GetReadySchedulableNodesOrDie
Remove the "OrDie" from the name (since it doesn't "or die") and add
an extra check that there is at least 1 node available, since many
callers already did that themselves, and many others should have.
2019-09-24 13:03:39 -04:00
hwdef
af16366001 use log func in test/e2e/network 2019-09-13 17:54:51 +08:00
Davanum Srinivas
46cc8adcc3
Use preferred import packages for test/e2e
Ran `hack/update-import-aliases.sh`

Change-Id: Ieaf3599a80ec90026b2c83f25c797d121a461549
2019-08-26 08:56:42 -04:00
Anish Ramasekar
6c5cca323a
clean up and fix nits 2019-07-10 15:14:39 -07:00
Anish Ramasekar
bc13a39ccf
use framework.ExpectEqual for tests 2019-07-08 00:24:28 -07:00
Anish Ramasekar
789920955a
add e2e for dualstack
add test for network connectivity check

update tests

complete tests

Review feedback

run update-bazel

feature flag connectivity test

remove dead code

add todo
2019-07-02 22:47:03 -07:00