fix(helm): only render rollingUpdate when strategy type is RollingUpdate (#2728)

This commit is contained in:
Rafael Peroco
2026-04-28 20:06:31 -03:00
committed by GitHub
parent e16f1ae639
commit 2c9524e2c9
+6 -1
View File
@@ -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: