Skip to content

Commit

Permalink
fix: fixing Field HEDERA_NETWORK on configMap helm chart template, wh…
Browse files Browse the repository at this point in the history
…en 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 <[email protected]>
  • Loading branch information
AlfredoG87 authored May 16, 2024
1 parent 8b45ca8 commit 222743b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion charts/hedera-json-rpc-relay/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 222743b

Please sign in to comment.