From 0bf25fdefaeb06f3246ffe099de2240850fa7534 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf <70889047+swolf-regnology@users.noreply.github.com> Date: Fri, 12 Dec 2025 05:30:35 +0100 Subject: [PATCH] feat: Be able to set region from Helm chart (#1119) Co-authored-by: houseme --- helm/rustfs/templates/configmap.yaml | 3 +++ helm/rustfs/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/helm/rustfs/templates/configmap.yaml b/helm/rustfs/templates/configmap.yaml index 910ec874..132ff4c2 100644 --- a/helm/rustfs/templates/configmap.yaml +++ b/helm/rustfs/templates/configmap.yaml @@ -8,6 +8,9 @@ data: RUSTFS_OBS_LOG_DIRECTORY: {{ .Values.config.rustfs.obs_log_directory | quote }} RUSTFS_CONSOLE_ENABLE: {{ .Values.config.rustfs.console_enable | quote }} RUSTFS_OBS_LOGGER_LEVEL: {{ .Values.config.rustfs.log_level | quote }} + {{- if .Values.config.rustfs.region }} + RUSTFS_REGION: {{ .Values.config.rustfs.region | quote }} + {{- end }} {{- if .Values.mode.distributed.enabled }} {{- if eq (int .Values.replicaCount) 4 }} RUSTFS_VOLUMES: "http://{{ include "rustfs.fullname" . }}-{0...3}.{{ include "rustfs.fullname" . }}-headless:9000/data/rustfs{0...3}" diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index 17d23c43..851651ca 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -41,6 +41,7 @@ config: rust_log: "debug" console_enable: "true" obs_log_directory: "/logs" + region: "us-east-1" # This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/ serviceAccount: