Commit 5e926688 authored by Lars Fenneberg's avatar Lars Fenneberg

Helm charts: Fix name of update strategy field for StatefulSet

parent 21270059
...@@ -35,10 +35,14 @@ spec: ...@@ -35,10 +35,14 @@ spec:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ template "viking-service.name" . }} app.kubernetes.io/name: {{ template "viking-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.vikingService.updateStrategy }} {{- if .Values.vikingService.updateStrategy }}
{{- if eq .Values.vikingService.kind "Deployment" }}
strategy: strategy:
{{- toYaml .Values.vikingService.updateStrategy | nindent 4 }} {{- else }}
updateStrategy:
{{- end }} {{- end }}
{{- toYaml .Values.vikingService.updateStrategy | nindent 4 }}
{{- end }}
replicas: {{ .Values.vikingService.replicaCount }} replicas: {{ .Values.vikingService.replicaCount }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
template: template:
......
...@@ -68,8 +68,8 @@ vikingService: ...@@ -68,8 +68,8 @@ vikingService:
## ##
annotations: {} annotations: {}
# The update strategy to apply to the Deployment or DaemonSet # The update strategy to apply
## # NB: Update strategy configuration differs between a Deployment and a StatefulSet
updateStrategy: {} updateStrategy: {}
# rollingUpdate: # rollingUpdate:
# maxUnavailable: 1 # maxUnavailable: 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment