From f439a68edad5f87807adb94dbc7af5e1f67fa68d Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Thu, 18 Jan 2024 23:24:17 +0000 Subject: [PATCH] fix lapis urls --- kubernetes/loculus/templates/_lapis-urls.tpl | 4 ++-- kubernetes/loculus/templates/loculus-website-config.yaml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kubernetes/loculus/templates/_lapis-urls.tpl b/kubernetes/loculus/templates/_lapis-urls.tpl index b58dcb691..881be2087 100644 --- a/kubernetes/loculus/templates/_lapis-urls.tpl +++ b/kubernetes/loculus/templates/_lapis-urls.tpl @@ -1,6 +1,6 @@ {{/* generates internal LAPIS urls from given config object */}} {{ define "loculus.generateInternalLapisUrls"}} -{{ range $key, $_ := .instances }} +{{ range $key, $_ := $.Values.instances }} "{{ $key -}}": "http://{{ template "loculus.lapisServiceName" $key }}:8080" {{ end }} {{ end }} @@ -8,7 +8,7 @@ {{/* generates external LAPIS urls from { config, host } */}} {{ define "loculus.generateExternalLapisUrls"}} {{ $host := .host }} -{{ range $key, $_ := .config.instances }} +{{ range $key, $_ := $.Values.instances }} "{{ $key -}}": "{{ $host }}/{{ $key }}" {{ end }} {{ end }} diff --git a/kubernetes/loculus/templates/loculus-website-config.yaml b/kubernetes/loculus/templates/loculus-website-config.yaml index 792d70811..64e462328 100644 --- a/kubernetes/loculus/templates/loculus-website-config.yaml +++ b/kubernetes/loculus/templates/loculus-website-config.yaml @@ -6,7 +6,6 @@ ) }} {{- $externalLapisUrlConfig := dict "host" $lapisHost - "config" $.Values }} ---