From 13eef9cf11f837ba251ab473317d3a02d5782efa Mon Sep 17 00:00:00 2001 From: emmanue Date: Sat, 28 Oct 2023 21:15:33 +0000 Subject: [PATCH] fix: Setup test env for beta channel --- deployment/overlays/test/deployment.yaml | 12 ++++++++++-- deployment/overlays/test/kustomization.yaml | 1 + deployment/overlays/test/mapping.yaml | 7 +++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 deployment/overlays/test/mapping.yaml diff --git a/deployment/overlays/test/deployment.yaml b/deployment/overlays/test/deployment.yaml index 741c62271..8a26854aa 100644 --- a/deployment/overlays/test/deployment.yaml +++ b/deployment/overlays/test/deployment.yaml @@ -14,5 +14,13 @@ spec: containers: - name: treetracker-web-map-client 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' diff --git a/deployment/overlays/test/kustomization.yaml b/deployment/overlays/test/kustomization.yaml index 278f61487..e20e9a48b 100644 --- a/deployment/overlays/test/kustomization.yaml +++ b/deployment/overlays/test/kustomization.yaml @@ -2,4 +2,5 @@ bases: - ../../base patchesStrategicMerge: - deployment.yaml + - mapping.yaml # - database-connection-sealed-secret.yaml diff --git a/deployment/overlays/test/mapping.yaml b/deployment/overlays/test/mapping.yaml new file mode 100644 index 000000000..4a7009c09 --- /dev/null +++ b/deployment/overlays/test/mapping.yaml @@ -0,0 +1,7 @@ +apiVersion: getambassador.io/v2 +kind: Mapping +metadata: + name: treetracker-web-map-client-beta-be-api + namespace: webmap +spec: + host: beta-test.treetracker.org