Skip to content

Commit 0e189dc

Browse files
authored
feat: unify treatment of HEDERA_NETWORK value in Relay and WS charts (#3936)
Signed-off-by: nikolay <[email protected]>
1 parent 0d1d69d commit 0e189dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

charts/hedera-json-rpc-relay-websocket/templates/configmap.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ metadata:
77
{{ include "json-rpc-relay-ws.labels" . | nindent 4 }}
88
data:
99
{{- range $key, $value := .Values.config }}
10-
{{ $key }}: {{ if typeIs "float64" $value }}{{ $value | int64 | quote }}{{ else }}{{ $value | quote }}{{ end }}
10+
{{- if eq $key "HEDERA_NETWORK" }}
11+
{{ $key }}: {{ if typeIs "string" $value}} {{ $value | lower | quote }} {{else}} {{ printf "{%s}" (tpl (join "," $value | trimPrefix "[" | trimSuffix "]") $) | squote }} {{end}}
12+
{{- else }}
13+
{{ $key }}: {{ if typeIs "float64" $value }}{{ $value | int64 | quote }}{{ else }}{{ $value | quote }}{{ end }}
14+
{{- end }}
1115
{{- end }}
1216
{{- include "json-rpc-relay-ws.redis-config" . | nindent 2 }}

0 commit comments

Comments
 (0)