This commit is contained in:
Till Faelligen 2023-04-03 08:52:13 +02:00
parent ec873a97c7
commit 30c954ab13
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -12,6 +12,13 @@ spec:
matchLabels: matchLabels:
{{- include "dendrite.selectorLabels" . | nindent 6 }} {{- include "dendrite.selectorLabels" . | nindent 6 }}
replicas: 1 replicas: 1
strategy:
type: {{ $.Values.strategy.type }}
{{- if eq $.Values.strategy.type "RollingUpdate" }}
rollingUpdate:
maxSurge: {{ $.Values.strategy.rollingUpdate.maxSurge }}
maxUnavailable: {{ $.Values.strategy.rollingUpdate.maxUnavailable }}
{{- end }}
template: template:
metadata: metadata:
labels: labels:
@ -19,13 +26,6 @@ spec:
annotations: annotations:
confighash: secret-{{ .Values.dendrite_config | toYaml | sha256sum | trunc 32 }} confighash: secret-{{ .Values.dendrite_config | toYaml | sha256sum | trunc 32 }}
spec: spec:
strategy:
type: {{ $.Values.strategy.type }}
{{- if eq $.Values.strategy.type "RollingUpdate" }}
rollingUpdate:
maxSurge: {{ $.Values.strategy.rollingUpdate.maxSurge }}
maxUnavailable: {{ $.Values.strategy.rollingUpdate.maxUnavailable }}
{{- end }}
volumes: volumes:
- name: {{ include "dendrite.fullname" . }}-conf-vol - name: {{ include "dendrite.fullname" . }}-conf-vol
secret: secret: