synatainer: Fix chart lint issues
This commit is contained in:
parent
d7d114508e
commit
59c6b0f29b
3 changed files with 8 additions and 14 deletions
|
@ -1,9 +1,3 @@
|
|||
{{- if (not (and .Values.postgresql.host .Values.postgresql.password)) -}}
|
||||
{{ fail "You need to specify postgres connection details" }}
|
||||
{{- end -}}
|
||||
{{- if (not (and .Values.synapse.token)) -}}
|
||||
{{ fail "You need to specify synapse connection details" }}
|
||||
{{- end -}}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
|
@ -12,7 +6,7 @@ metadata:
|
|||
labels:
|
||||
{{- include "synatainer.labels" . | nindent 4 }}
|
||||
data:
|
||||
DB_HOST: {{ .Values.postgresql.host | quote }}
|
||||
DB_HOST: {{ required "You need to specify a postgres host" .Values.postgresql.host | quote }}
|
||||
DB_NAME: {{ .Values.postgresql.database | default "synapse" | quote }}
|
||||
DB_USER: {{ .Values.postgresql.username | default "synapse" | quote }}
|
||||
SYNAPSE_HOST: {{ .Values.synapse.url | default "http://matrix-synapse:8008" | quote }}
|
||||
|
|
|
@ -6,8 +6,8 @@ metadata:
|
|||
labels:
|
||||
{{- include "synatainer.labels" . | nindent 4 }}
|
||||
data:
|
||||
PGPASSWORD: {{ .Values.postgresql.password | toString | b64enc }}
|
||||
BEARER_TOKEN: {{ .Values.synapse.token | toString | b64enc }}
|
||||
PGPASSWORD: {{ required "You need to specify a postgres password" .Values.postgresql.password | toString | b64enc }}
|
||||
BEARER_TOKEN: {{ required "You need to specify a synapse token" .Values.synapse.token | toString | b64enc }}
|
||||
|
||||
{{- range $key, $val := .Values.extraSecrets }}
|
||||
{{ $key }}: {{ $val | toString | b64enc }}
|
||||
|
|
|
@ -4,20 +4,20 @@ image:
|
|||
repository: registry.gitlab.com/mb-saces/synatainer
|
||||
pullPolicy: IfNotPresent
|
||||
## Overrides the image tag, for running a different version than the charts.
|
||||
# tag: latest
|
||||
# tag:
|
||||
|
||||
## Connection details for the Synapse database
|
||||
postgresql:
|
||||
host:
|
||||
database:
|
||||
username:
|
||||
# database: synapse
|
||||
# username: synapse
|
||||
password:
|
||||
|
||||
## Connection details for the Synapse instance
|
||||
synapse:
|
||||
## The URL to the Synapse instance, can either be a cluster-internal or external URL
|
||||
## E.g. http://matrix-synapse.matrix.svc:8008 or https://matrix.example.com
|
||||
url:
|
||||
## E.g. http://matrix-synapse.other-matrix-namespace.svc:8008 or https://matrix.example.com
|
||||
# url: http://matrix-synapse:8008
|
||||
token:
|
||||
|
||||
## Extra environment variables for configuring synatainer
|
||||
|
|
Loading…
Reference in a new issue