Skip to content

Commit 263cac3

Browse files
authored
Merge pull request #19 from pngmbh/fix-helm-chart
fix(charts): fix in-cluster test setup via helm chart
2 parents 33a2c21 + 15fb561 commit 263cac3

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Setting the `GINKGO_NODES` environment variable to a value of `1` will allow ser
6767
If you have Go 1.5 or greater already installed and working properly and also have the [Glide](https://github.com/Masterminds/glide) dependency management tool for Go installed, you may clone this repository into your `$GOPATH`:
6868

6969
```console
70-
git clone git@github.com:deis/workflow-e2e.git $GOPATH/src/github.com/deis/workflow-e2e
70+
git clone git@github.com:teamhephy/workflow-e2e.git $GOPATH/src/github.com/deis/workflow-e2e
7171
```
7272

7373
One-time execution of the following will resolve the test suite's own dependencies:
@@ -101,7 +101,7 @@ If you do not have Go 1.5 or greater installed locally, but do have a Docker dae
101101
In this case, you may clone this repository into a path of your own choosing (does not need to be on your `$GOPATH`):
102102

103103
```console
104-
git clone git@github.com:deis/workflow-e2e.git /path/of/your/choice
104+
git clone git@github.com:teamhephy/workflow-e2e.git /path/of/your/choice
105105
```
106106

107107
Then build the test image and execute the test suite:
@@ -117,8 +117,9 @@ A third option is to run the test suite from within the very cluster that is und
117117
To install the [helm](https://github.com/kubernetes/helm) chart and start the tests, assuming helm and its corresponding server component tiller are [installed](https://github.com/kubernetes/helm/blob/master/docs/install.md):
118118

119119
```console
120-
helm repo add workflow-e2e https://charts.deis.com/workflow-e2e
121-
helm install --verify workflow-e2e/workflow-e2e --namespace deis
120+
git clone git clone git@github.com:teamhephy/workflow-e2e.git; cd workflow-e2e
121+
helm dependency update charts/workflow-e2e
122+
helm upgrade --install workflow-e2e charts/workflow-e2e --namespace deis
122123
```
123124

124125
To monitor tests as they execute:

charts/workflow-e2e/templates/workflow-e2e-pod.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
image: {{.Values.org}}/workflow-e2e:{{.Values.docker_tag}}
1212
imagePullPolicy: {{.Values.pull_policy}}
1313
env:
14+
- name: DEIS_ROUTER_SERVICE_PORT
15+
value: "80"
1416
- name: GINKGO_NODES
1517
value: "{{.Values.ginkgo_nodes}}"
1618
- name: JUNIT
@@ -22,6 +24,14 @@ spec:
2224
value: "{{.Values.test}}"
2325
- name: DEBUG_MODE
2426
value: "{{.Values.debug_mode}}"
27+
command: ["/bin/bash"]
28+
args:
29+
- -c
30+
- >
31+
export DEIS_CONTROLLER_URL=http://deis.$$(getent hosts deis-router | grep -o "^[^ ]*").nip.io;
32+
export DEIS_ROUTER_SERVICE_HOST=deis.$$(getent hosts deis-router | grep -o "^[^ ]*").nip.io;
33+
./docker-test-integration.sh
34+
2535
volumeMounts:
2636
- name: artifact-volume
2737
mountPath: /root

0 commit comments

Comments
 (0)