diff --git a/swh/templates/graphql/configmap.yaml b/swh/templates/graphql/configmap.yaml --- a/swh/templates/graphql/configmap.yaml +++ b/swh/templates/graphql/configmap.yaml @@ -7,10 +7,11 @@ namespace: {{ .Values.namespace }} data: config.yml: | - storage: + {{- range $backend, $backend_config := .Values.graphql.backends }} + {{ $backend }}: cls: remote - url: {{ .Values.graphql.storageUrl }} - + url: http://{{ get $backend_config "host" }}:{{ get $backend_config "port" }} + {{- end }} debug: yes server-type: wsgi diff --git a/swh/values/staging.yaml b/swh/values/staging.yaml --- a/swh/values/staging.yaml +++ b/swh/values/staging.yaml @@ -86,7 +86,13 @@ graphql: enabled: true - storageUrl: http://webapp.internal.staging.swh.network:5002/ + backends: + storage: + host: webapp.internal.staging.swh.network + port: 5002 + search: + host: search0.internal.staging.swh.network + port: 5010 replicas: 1 gunicorn: threads: 4