From 377ed507c52d1a52c204ed6995e0ca20fd6ea255 Mon Sep 17 00:00:00 2001 From: mkrueger92 <7305571+mkrueger92@users.noreply.github.com> Date: Mon, 5 Jan 2026 02:22:53 +0100 Subject: [PATCH] Enable the possibility to freely configure request and limit (#1374) Signed-off-by: mkrueger92 <7305571+mkrueger92@users.noreply.github.com> Co-authored-by: houseme --- helm/rustfs/templates/deployment.yaml | 7 +------ helm/rustfs/templates/statefulset.yaml | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index fec9db71..2ef42be9 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -96,12 +96,7 @@ spec: - secretRef: name: {{ include "rustfs.secretName" . }} resources: - requests: - memory: {{ .Values.resources.requests.memory }} - cpu: {{ .Values.resources.requests.cpu }} - limits: - memory: {{ .Values.resources.limits.memory }} - cpu: {{ .Values.resources.limits.cpu }} + {{- toYaml .Values.resources | nindent 12 }} livenessProbe: httpGet: path: /health diff --git a/helm/rustfs/templates/statefulset.yaml b/helm/rustfs/templates/statefulset.yaml index 80585b8d..fda799c2 100644 --- a/helm/rustfs/templates/statefulset.yaml +++ b/helm/rustfs/templates/statefulset.yaml @@ -121,12 +121,7 @@ spec: - secretRef: name: {{ include "rustfs.secretName" . }} resources: - requests: - memory: {{ .Values.resources.requests.memory }} - cpu: {{ .Values.resources.requests.cpu }} - limits: - memory: {{ .Values.resources.limits.memory }} - cpu: {{ .Values.resources.limits.cpu }} + {{- toYaml .Values.resources | nindent 12 }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: