From 222743b7941f57dfa6dd7e91baab6aa63e0637be Mon Sep 17 00:00:00 2001 From: Alfredo Gutierrez Date: Wed, 15 May 2024 23:13:48 -0600 Subject: [PATCH] fix: fixing Field HEDERA_NETWORK on configMap helm chart template, when is not a string but a json. (#2498) fixing Field HEDERA_NETWORK, when is not a string but a json. Signed-off-by: Alfredo Gutierrez --- charts/hedera-json-rpc-relay/templates/configmap.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/hedera-json-rpc-relay/templates/configmap.yaml b/charts/hedera-json-rpc-relay/templates/configmap.yaml index b0c9081381..8f925fb469 100644 --- a/charts/hedera-json-rpc-relay/templates/configmap.yaml +++ b/charts/hedera-json-rpc-relay/templates/configmap.yaml @@ -7,5 +7,10 @@ metadata: {{ include "json-rpc-relay.labels" . | nindent 4 }} data: {{- range $key, $value := .Values.config }} - {{ $key }}: {{ if typeIs "float64" $value }}{{ $value | int64 | quote }}{{ else }}{{ $value | quote }}{{ end }} + {{- if eq $key "HEDERA_NETWORK" }} + {{ $key }}: {{ if typeIs "string" $value}} {{ $value | lower | quote }} {{else}} {{ printf "{%s}" (tpl (join "," $value | trimPrefix "[" | trimSuffix "]") $) | squote }} {{end}} + {{- else }} + {{ $key }}: {{ if typeIs "float64" $value }}{{ $value | int64 | quote }}{{ else }}{{ $value | quote }}{{ end }} + {{- end }} {{- end }} +