From 2c9524e2c932462d65c39821c57760ac414fbd7f Mon Sep 17 00:00:00 2001 From: Rafael Peroco Date: Tue, 28 Apr 2026 20:06:31 -0300 Subject: [PATCH] fix(helm): only render rollingUpdate when strategy type is RollingUpdate (#2728) --- helm/rustfs/templates/deployment.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index 003db17d9..8103c2d50 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -14,8 +14,13 @@ metadata: spec: replicas: 1 {{- with .Values.mode.standalone.strategy }} + {{- $type := default "RollingUpdate" .type }} strategy: - {{- toYaml . | nindent 4 }} + type: {{ $type }} + {{- if and (eq $type "RollingUpdate") .rollingUpdate }} + rollingUpdate: + {{- toYaml .rollingUpdate | nindent 6 }} + {{- end }} {{- end }} selector: matchLabels: