From 4514d116208cdd0e42dfc8282f08cf79b0b5c838 Mon Sep 17 00:00:00 2001 From: emmanue Date: Sat, 28 Oct 2023 17:59:39 +0000 Subject: [PATCH] fix: Setup test env for next channel --- deployment-next/base/deployment.yaml | 2 ++ deployment-next/overlays/test/deployment.yaml | 12 ++++++++++-- deployment-next/overlays/test/host.yaml | 12 ++++++++++++ deployment-next/overlays/test/kustomization.yaml | 2 ++ deployment-next/overlays/test/mapping.yaml | 7 +++++++ 5 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 deployment-next/overlays/test/host.yaml create mode 100644 deployment-next/overlays/test/mapping.yaml diff --git a/deployment-next/base/deployment.yaml b/deployment-next/base/deployment.yaml index 9cc99b502..aa080e3e9 100644 --- a/deployment-next/base/deployment.yaml +++ b/deployment-next/base/deployment.yaml @@ -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 diff --git a/deployment-next/overlays/test/deployment.yaml b/deployment-next/overlays/test/deployment.yaml index 87d2cb50f..96d826a3d 100644 --- a/deployment-next/overlays/test/deployment.yaml +++ b/deployment-next/overlays/test/deployment.yaml @@ -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' diff --git a/deployment-next/overlays/test/host.yaml b/deployment-next/overlays/test/host.yaml new file mode 100644 index 000000000..aa71ed67a --- /dev/null +++ b/deployment-next/overlays/test/host.yaml @@ -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: zaven@greenstand.org \ No newline at end of file diff --git a/deployment-next/overlays/test/kustomization.yaml b/deployment-next/overlays/test/kustomization.yaml index 278f61487..9c3734881 100644 --- a/deployment-next/overlays/test/kustomization.yaml +++ b/deployment-next/overlays/test/kustomization.yaml @@ -2,4 +2,6 @@ bases: - ../../base patchesStrategicMerge: - deployment.yaml + - host.yaml + - mapping.yaml # - database-connection-sealed-secret.yaml diff --git a/deployment-next/overlays/test/mapping.yaml b/deployment-next/overlays/test/mapping.yaml new file mode 100644 index 000000000..da0faa619 --- /dev/null +++ b/deployment-next/overlays/test/mapping.yaml @@ -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