File tree Expand file tree Collapse file tree 5 files changed +3
-17
lines changed Expand file tree Collapse file tree 5 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ The following environment variables should be set:
4
4
5
5
1 . ` E2E_NAMESPACE ` is the namespace where the tests should be run.
6
6
2 . ` CLUSTER_DOMAIN ` is the DNS domain managed in which ingresses should be created
7
- 3 . ` CLUSTER_DOMAIN_INTERNAL ` is the internal DNS domain managed in which ingresses should be created
8
7
4 . ` CONTROLLER_ID ` is set so that all stacks are only managed by the controller being currently tested.
9
8
5 . ` KUBECONFIG ` with the path to the kubeconfig file
10
9
36
35
--enable-pcs-support --enable-traffic-segments --controller-id=foo \
37
36
--sync-ingress-annotation=example.org/i-haz-synchronize \
38
37
--sync-ingress-annotation=teapot.org/the-best \
39
- --cluster-domain=${CLUSTER_DOMAIN} --cluster-domain=${CLUSTER_DOMAIN_INTERNAL}
38
+ --cluster-domain=${CLUSTER_DOMAIN}
40
39
```
41
40
4 . rebuild e2e test and run e2e tests in ` foo ` namespace
42
41
```
43
42
rm -f build/e2e; make build/e2e
44
- CLUSTER_DOMAIN=example.org CLUSTER_DOMAIN_INTERNAL=ingress.cluster.local CLUSTER_NAME=example E2E_NAMESPACE=foo CONTROLLER_ID=foo KUBECONFIG=$HOME/.kube/config ./build/e2e -test.v #-test.run=TestTrafficSwitch
43
+ CLUSTER_DOMAIN=example.org CLUSTER_NAME=example E2E_NAMESPACE=foo CONTROLLER_ID=foo KUBECONFIG=$HOME/.kube/config ./build/e2e -test.v #-test.run=TestTrafficSwitch
45
44
```
Original file line number Diff line number Diff line change 24
24
kubernetesClient , stacksetClient , routegroupClient = createClients ()
25
25
namespace = requiredEnvar ("E2E_NAMESPACE" )
26
26
clusterDomain = requiredEnvar ("CLUSTER_DOMAIN" )
27
- clusterDomainInternal = requiredEnvar ("CLUSTER_DOMAIN_INTERNAL" )
28
- clusterDomains = []string {clusterDomain , clusterDomainInternal }
27
+ clusterDomains = []string {clusterDomain }
29
28
controllerId = os .Getenv ("CONTROLLER_ID" )
30
29
waitTimeout time.Duration
31
30
trafficSwitchWaitTimeout time.Duration
Original file line number Diff line number Diff line change @@ -55,8 +55,6 @@ pipeline:
55
55
- name : CONTROLLER_ID
56
56
value : " #{CDP_BUILD_VERSION}"
57
57
- name : CLUSTER_DOMAIN
58
- value : stups-test.zalan.do
59
- - name : CLUSTER_DOMAIN_INTERNAL
60
58
value : ingress.cluster.local
61
59
end2end_tests :
62
60
metadata :
@@ -74,8 +72,6 @@ pipeline:
74
72
- name : " CONTROLLER_ID"
75
73
value : " #{CDP_BUILD_VERSION}"
76
74
- name : CLUSTER_DOMAIN
77
- value : stups-test.zalan.do
78
- - name : CLUSTER_DOMAIN_INTERNAL
79
75
value : ingress.cluster.local
80
76
- name : " E2E_NAMESPACE"
81
77
valueFrom :
Original file line number Diff line number Diff line change 26
26
- " --namespace={{{CDP_DEPLOYMENT_ID}}}"
27
27
- " --controller-id={{{CONTROLLER_ID}}}"
28
28
- " --cluster-domain={{{CLUSTER_DOMAIN}}}"
29
- - " --cluster-domain={{{CLUSTER_DOMAIN_INTERNAL}}}"
30
29
- " --enable-configmap-support"
31
30
- " --enable-secret-support"
32
31
- " --enable-routegroup-support"
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ set -euf -o pipefail
4
4
shopt -s nullglob
5
5
6
6
CLUSTER_DOMAIN=${CLUSTER_DOMAIN:- " " }
7
- CLUSTER_DOMAIN_INTERNAL=${CLUSTER_DOMAIN_INTERNAL:- " " }
8
7
CLUSTER_NAME=${CLUSTER_NAME:- " " }
9
8
# Set TEST_NAME to run a single test
10
9
# eg.: TEST_NAME=TestIngressToRouteGroupSwitch ./e2e/run_e2e.sh
@@ -17,11 +16,6 @@ if [[ -z "${CLUSTER_DOMAIN}" ]]; then
17
16
exit 0
18
17
fi
19
18
20
- if [[ -z " ${CLUSTER_DOMAIN_INTERNAL} " ]]; then
21
- echo " Please specify the cluster domain via CLUSTER_DOMAIN_INTERNAL."
22
- exit 0
23
- fi
24
-
25
19
if [[ -z " ${CLUSTER_NAME} " ]]; then
26
20
echo " Please specify the name of the cluster via CLUSTER_NAME."
27
21
exit 0
@@ -57,7 +51,6 @@ command $sscPath --apiserver=http://127.0.0.1:8001 \
57
51
--enable-pcs-support \
58
52
--enable-routegroup-support \
59
53
--cluster-domain=${CLUSTER_DOMAIN} \
60
- --cluster-domain=${CLUSTER_DOMAIN_INTERNAL} \
61
54
--controller-id=$CONTROLLER_ID 2> $controllerLog &
62
55
63
56
# Create the Kubernetes namespace to be used for this test run.
You can’t perform that action at this time.
0 commit comments