Skip to content

Commit

Permalink
fix: Setup test env for next channel
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue committed Oct 28, 2023
1 parent bb8d6e7 commit 4514d11
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deployment-next/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
containers:
- name: treetracker-web-map-client-next
image: greenstand/treetracker-web-map-client:TAG
ports:
- containerPort: 3000
env:
- name: NEXT_PUBLIC_API
value: https://dev-k8s.treetracker.org/query
Expand Down
12 changes: 10 additions & 2 deletions deployment-next/overlays/test/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ spec:
containers:
- name: treetracker-web-map-client-next
env:
- name: NODE_ENV
value: test
- name: NEXT_PUBLIC_API
value: https://test-k8s.treetracker.org/query
- name: NEXT_PUBLIC_TILE_SERVER_URL
value: https://{s}.treetracker.org/tiles/
- name: NEXT_PUBLIC_TILE_SERVER_SUBDOMAINS
value: test-k8s
- name: NEXT_PUBLIC_TILE_SERVER_WEBMAP_API
value: https://test-k8s.treetracker.org/webmap/
- name: NEXT_PUBLIC_COUNTRY_LEADER_BOARD_DISABLED
value: 'false'
12 changes: 12 additions & 0 deletions deployment-next/overlays/test/host.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: getambassador.io/v2
kind: Host
metadata:
name: next-test.treetracker.org
spec:
hostname: next-test.treetracker.org
selector:
matchLabels:
hostname: next-test.treetracker.org
acmeProvider:
authority: https://acme-v02.api.letsencrypt.org/directory
email: [email protected]
2 changes: 2 additions & 0 deletions deployment-next/overlays/test/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ bases:
- ../../base
patchesStrategicMerge:
- deployment.yaml
- host.yaml
- mapping.yaml
# - database-connection-sealed-secret.yaml
7 changes: 7 additions & 0 deletions deployment-next/overlays/test/mapping.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: treetracker-web-map-client-mapping-next
namespace: webmap
spec:
host: next-test.treetracker.org

0 comments on commit 4514d11

Please sign in to comment.