diff --git a/stable/memcached/templates/statefulset.yaml b/stable/memcached/templates/statefulset.yaml index e24fb1091c2a..e1b2c011b3c7 100644 --- a/stable/memcached/templates/statefulset.yaml +++ b/stable/memcached/templates/statefulset.yaml @@ -119,7 +119,9 @@ spec: affinity: {{ toYaml . | trim | indent 8}} {{- end }} -{{- with .Values.updateStrategy }} updateStrategy: -{{ toYaml . | indent 4 }} + type: {{ .Values.updateStrategy.type }} + {{- if (eq "Recreate" .Values.updateStrategy.type) }} + rollingUpdate: null + {{- end }} {{- end }}