Changeset View
Changeset View
Standalone View
Standalone View
swh/templates/graphql/configmap.yaml
{{ if .Values.graphql.enabled -}} | {{ if .Values.graphql.enabled -}} | ||||
--- | --- | ||||
apiVersion: v1 | apiVersion: v1 | ||||
kind: ConfigMap | kind: ConfigMap | ||||
metadata: | metadata: | ||||
name: graphql | name: graphql | ||||
namespace: {{ .Values.namespace }} | namespace: {{ .Values.namespace }} | ||||
data: | data: | ||||
config.yml: | | config.yml: | | ||||
storage: | {{- range $backend, $backend_config := .Values.graphql.backends }} | ||||
{{ $backend }}: | |||||
cls: remote | cls: remote | ||||
url: {{ .Values.graphql.storageUrl }} | url: http://{{ get $backend_config "host" }}:{{ get $backend_config "port" }} | ||||
vsellier: the presence of the storage or search dicts should be tested to avoid a NPE.
I suppose none of… | |||||
Done Inline Actions
you mean wrap the configuration writing with conditionals, right? NPE as in "Null Pointer Exception"? (such a java dude ;)
storage must be otherwise i don't know how the server could reply something. You are i'll attend to it. ardumont: > the presence of the storage or search dicts should be tested to avoid a NPE.
you mean wrap… | |||||
{{- end }} | |||||
debug: yes | debug: yes | ||||
server-type: wsgi | server-type: wsgi | ||||
{{ end }} | {{ end }} |
the presence of the storage or search dicts should be tested to avoid a NPE.
I suppose none of them is mandatory?