From 251bec14fc9ee8edef82e3a8169e695072739ef6 Mon Sep 17 00:00:00 2001 From: Tom Hodson Date: Tue, 15 Apr 2025 13:50:01 +0000 Subject: [PATCH] update webapp --- chart/templates/stac-server-deployment.yaml | 2 ++ scripts/restart.sh | 1 - stac_server/main.py | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/chart/templates/stac-server-deployment.yaml b/chart/templates/stac-server-deployment.yaml index 3746f47..b8f095d 100644 --- a/chart/templates/stac-server-deployment.yaml +++ b/chart/templates/stac-server-deployment.yaml @@ -24,6 +24,8 @@ spec: secretKeyRef: name: api-key key: API_KEY + - name: API_URL + value: "https://{{ .Values.ingress.hostname }}/api/v1/stac/climate-dt/" ports: - containerPort: {{ .Values.stacServer.servicePort }} --- diff --git a/scripts/restart.sh b/scripts/restart.sh index b44478d..a8e1f9a 100755 --- a/scripts/restart.sh +++ b/scripts/restart.sh @@ -1,3 +1,2 @@ # kubectl rollout restart deployment/redis -kubectl -n qubed rollout restart deployment/web-query-builder kubectl -n qubed rollout restart deployment/stac-server diff --git a/stac_server/main.py b/stac_server/main.py index c41efd6..e009e37 100644 --- a/stac_server/main.py +++ b/stac_server/main.py @@ -74,6 +74,14 @@ else: timeout=1, ).json() ) + + qubes["od"] = Qube.from_json( + requests.get( + "https://github.com/ecmwf/qubed/raw/refs/heads/main/tests/example_qubes/od.json", + timeout=1, + ).json() + ) + qubes["climate-dt"] = qubes["climate-dt"] | qubes["extremes-dt"] | qubes["od"] mars_language = yaml.safe_load( requests.get( "https://github.com/ecmwf/qubed/raw/refs/heads/main/config/climate-dt/language.yaml",