From 751bc3d73749b05d3feffa79084bab9aadc053d8 Mon Sep 17 00:00:00 2001 From: majinghe <42570491+majinghe@users.noreply.github.com> Date: Tue, 7 Apr 2026 11:00:21 +0800 Subject: [PATCH] fix: move ec configuration from configmap to extraEnv (#2408) --- helm/README.md | 1 - helm/rustfs/templates/configmap.yaml | 6 ------ helm/rustfs/values.yaml | 7 +++++-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/helm/README.md b/helm/README.md index 1950cdecd..5a7e4e0b9 100644 --- a/helm/README.md +++ b/helm/README.md @@ -23,7 +23,6 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m | config.rustfs.console_address | string | `":9001"` | | | config.rustfs.console_enable | string | `"true"` | | | config.rustfs.domains | string | `""` | Enable virtual host mode. | -| config.rustfs.ec.storage_class_standard | string | `EC:4` | Standard storage class environment variable. | | config.rustfs.log_level | string | `"info"` | | | config.rustfs.obs_environment | string | `"development"` | | | config.rustfs.obs_log_directory | string | `"/logs"` | | diff --git a/helm/rustfs/templates/configmap.yaml b/helm/rustfs/templates/configmap.yaml index d36323fc4..59ba9e182 100644 --- a/helm/rustfs/templates/configmap.yaml +++ b/helm/rustfs/templates/configmap.yaml @@ -82,9 +82,3 @@ data: RUSTFS_SCANNER_IDLE_MODE: {{ .idle_mode | quote }} {{- end }} {{- end }} - {{- if .Values.mode.distributed.enabled }} - {{- with .Values.config.rustfs.ec }} - RUSTFS_ERASURE_SET_DRIVE_COUNT: {{ 16 | quote }} - RUSTFS_STORAGE_CLASS_STANDARD: {{ .storage_class_standard | quote }} - {{- end }} - {{- end }} \ No newline at end of file diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index 1896261bb..7156adfa2 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -100,8 +100,11 @@ config: extraEnv: [] # This is for setting extra environment variables in the rustfs container. It should be a list of key value pairs. For example: # extraEnv: -# - name: RUSTFS_EXTRA_ENV -# value: "extra_value" +# - name: RUSTFS_ERASURE_SET_DRIVE_COUNT +# value: "16" +# - name: RUSTFS_STORAGE_CLASS_STANDARD +# value: "EC:4" + # This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/ serviceAccount: