Skip to content

Commit e55a5dd

Browse files
authored
Merge branch 'devstream-io:main' into build-upgrade-s3
2 parents 77e68ad + e06ea23 commit e55a5dd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/e2e-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ jobs:
9494
- name: test 2 - check if pod is ready
9595
run: while [[ $(kubectl get pods -l app=dtm-e2e-go -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "pod not ready yet..."; sleep 3; done
9696
timeout-minutes: 10
97-
- name: test 2 - check flask app can be reached
97+
- name: test 2 - check gin app can be reached
9898
run: |
9999
# get cluster ip of the service created by the argocd
100100
clusterIP=$(kubectl get svc dtm-e2e-go -n default -o jsonpath='{.spec.clusterIP}')
101-
# curl flask url and check if it returns "Hello, World!", if not, echo error and exit 1
102-
curl -s http://$clusterIP:8080 | grep "Hello, World!" || (echo "failed to access to flask app" && exit 1)
101+
# curl gin url and check if it returns content which contains "Blue Train", if not, echo error and exit 1
102+
curl -s http://$clusterIP:8080/albums/1 | grep "Blue Train" || (echo "failed to access to gin app" && exit 1)
103103
- name: test 2 - clean
104104
run: ./dtm delete -f e2e-apps.yaml -y
105105
# test3 is gitlabci-argocd

docs/use-cases/gitops/2-gitops-tools.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,14 @@ NAME READY STATUS RESTARTS AGE
259259
helloworld-69b5586b94-wjwd9 1/1 Running 0 5m18s
260260
tiexin@mbp ~/work/devstream-io/test $ kubectl get services -n default
261261
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
262-
helloworld ClusterIP 10.96.73.97 <none> 80/TCP 5m27s
262+
helloworld ClusterIP 10.96.73.97 <none> 8080/TCP 5m27s
263263
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 8m2s
264264
```
265265

266266
If you do a port-forwarding:
267267

268268
```bash
269-
kubectl port-forward -n default svc/helloworld 8080:80
269+
kubectl port-forward -n default svc/helloworld 8080:8080
270270
```
271271

272272
And accesses `localhost:8080` in your browser, you can see the deployed app return a "Hello, World!" to you. Hooray!

docs/use-cases/gitops/2-gitops-tools.zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,14 @@ NAME READY STATUS RESTARTS AGE
256256
helloworld-69b5586b94-wjwd9 1/1 Running 0 5m18s
257257
tiexin@mbp ~/work/devstream-io/test $ kubectl get services -n default
258258
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
259-
helloworld ClusterIP 10.96.73.97 <none> 80/TCP 5m27s
259+
helloworld ClusterIP 10.96.73.97 <none> 8080/TCP 5m27s
260260
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 8m2s
261261
```
262262
263263
我们可以通过端口转发来访问这个应用:
264264
265265
```bash
266-
kubectl port-forward -n default svc/helloworld 8080:80
266+
kubectl port-forward -n default svc/helloworld 8080:8080
267267
```
268268
269269
在浏览器中访问 `localhost:8080`,你可以看到应用返回了一个 "Hello, World!"。大功告成!

0 commit comments

Comments
 (0)