Skip to content

Commit

Permalink
fix: Setup test env for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue committed Jul 11, 2023
1 parent e357d21 commit d1dc46d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deployment-alpha/overlays/test/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ spec:
spec:
containers:
- name: treetracker-web-map-client-alpha
image: greenstand/treetracker-web-map-client:TAG
ports:
- containerPort: 3000
env:
- name: NEXT_PUBLIC_API
value: https://test-k8s.treetracker.org/query/v2
- name: NEXT_PUBLIC_API_V2
value: https://test-k8s.treetracker.org/
- 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'
- name: NODE_ENV
value: test
1 change: 1 addition & 0 deletions deployment-alpha/overlays/test/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ bases:
- ../../base
patchesStrategicMerge:
- deployment.yaml
- mapping.yaml
# - database-connection-sealed-secret.yaml
7 changes: 7 additions & 0 deletions deployment-alpha/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-alpha
namespace: webmap
spec:
host: alpha-test.treetracker.org

0 comments on commit d1dc46d

Please sign in to comment.