Added a loop to go through bootstrap_peers and make their output TOML friendly, instead of the Go default.

This commit is contained in:
Shannon Quinn
2025-11-25 15:33:47 -05:00
parent 0412013229
commit 6aecd9718f
+5 -1
View File
@@ -28,7 +28,11 @@ data:
# rpc_secret will be populated by the init container from a k8s secret object
rpc_secret = "__RPC_SECRET_REPLACE__"
bootstrap_peers = {{ .Values.garage.bootstrapPeers }}
bootstrap_peers = [
{{- range $index, $peer := .Values.garage.bootstrapPeers }}
{{- if $index}}, {{ end }}{{ $peer | quote }}
{{ end }}
]
{{- if .Values.garage.additionalTopLevelConfig }}
{{ .Values.garage.additionalTopLevelConfig | nindent 4 }}