From d863247f9f9dd01a22812f3729627c898280da39 Mon Sep 17 00:00:00 2001 From: Floris Smit Date: Wed, 1 Oct 2025 11:34:46 +0200 Subject: [PATCH] Add additionalTopLevelConfig to helm chart --- script/helm/garage/templates/configmap.yaml | 4 ++++ script/helm/garage/values.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/script/helm/garage/templates/configmap.yaml b/script/helm/garage/templates/configmap.yaml index be162aa0..bfdc6255 100644 --- a/script/helm/garage/templates/configmap.yaml +++ b/script/helm/garage/templates/configmap.yaml @@ -30,6 +30,10 @@ data: bootstrap_peers = {{ .Values.garage.bootstrapPeers }} + {{- if .Values.garage.additionalTopLevelConfig }} + {{ .Values.garage.additionalTopLevelConfig | nindent 4 }} + {{- end }} + [kubernetes_discovery] namespace = "{{ .Release.Namespace }}" service_name = "{{ include "garage.fullname" . }}" diff --git a/script/helm/garage/values.yaml b/script/helm/garage/values.yaml index bc1f8f7a..756e52f7 100644 --- a/script/helm/garage/values.yaml +++ b/script/helm/garage/values.yaml @@ -50,6 +50,12 @@ garage: rootDomain: ".web.garage.tld" index: "index.html" + # -- Additional configuration to append to garage.toml. Use a multi-line string for custom config. + # Example: + # additionalTopLevelConfig: |- + # data_fsync = true + additionalTopLevelConfig: "" + # -- if not empty string, allow using an existing ConfigMap for the garage.toml, # if set, ignores garage.toml existingConfigMap: ""