Compare commits
2 commits
main
...
s7evink/he
Author | SHA1 | Date | |
---|---|---|---|
ed3fb38719 | |||
2035649b6d |
|
@ -1,15 +1,9 @@
|
||||||
{{- define "validate.config" }}
|
{{- define "validate.config" }}
|
||||||
{{- if not .Values.signing_key.create -}}
|
{{- if not (or .Values.signing_key.create .Values.signing_key.existingSecret) -}}
|
||||||
{{- fail "You must create a signing key for configuration.signing_key. (see https://github.com/matrix-org/dendrite/blob/master/docs/INSTALL.md#server-key-generation)" -}}
|
{{- fail "You must create a signing key for configuration.signing_key. (see https://github.com/matrix-org/dendrite/blob/master/docs/INSTALL.md#server-key-generation)" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if not (or .Values.dendrite_config.global.database.host .Values.postgresql.enabled) -}}
|
{{- if not (or .Values.dendrite_config.global.database.connection_string .Values.postgresql.enabled) -}}
|
||||||
{{- fail "Database server must be set." -}}
|
{{- fail "Database connection string must be set." -}}
|
||||||
{{- end -}}
|
|
||||||
{{- if not (or .Values.dendrite_config.global.database.user .Values.postgresql.enabled) -}}
|
|
||||||
{{- fail "Database user must be set." -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- if not (or .Values.dendrite_config.global.database.password .Values.postgresql.enabled) -}}
|
|
||||||
{{- fail "Database password must be set." -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,13 @@ spec:
|
||||||
confighash-mediaapi: mediaapi-{{ .Values.mediaapi | toYaml | sha256sum | trunc 32 }}
|
confighash-mediaapi: mediaapi-{{ .Values.mediaapi | toYaml | sha256sum | trunc 32 }}
|
||||||
confighash-syncapi: syncapi-{{ .Values.syncapi | toYaml | sha256sum | trunc 32 }}
|
confighash-syncapi: syncapi-{{ .Values.syncapi | 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:
|
||||||
|
|
|
@ -43,6 +43,16 @@ persistence:
|
||||||
# -- PVC Storage Request for the search volume
|
# -- PVC Storage Request for the search volume
|
||||||
capacity: "1Gi"
|
capacity: "1Gi"
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
# -- Strategy to use for rolling updates (e.g. Recreate, RollingUpdate)
|
||||||
|
# If you are using ReadWriteOnce volumes, you should probably use Recreate
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
# -- Maximum number of pods that can be unavailable during the update process
|
||||||
|
maxUnavailable: 25%
|
||||||
|
# -- Maximum number of pods that can be scheduled above the desired number of pods
|
||||||
|
maxSurge: 25%
|
||||||
|
|
||||||
dendrite_config:
|
dendrite_config:
|
||||||
version: 2
|
version: 2
|
||||||
global:
|
global:
|
||||||
|
|
Loading…
Reference in a new issue