synatainer: Fix chart lint issues

This commit is contained in:
Alexander Olofsson 2022-07-05 14:42:38 +02:00
parent d7d114508e
commit 59c6b0f29b
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
3 changed files with 8 additions and 14 deletions

View file

@ -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 apiVersion: v1
kind: ConfigMap kind: ConfigMap
@ -12,7 +6,7 @@ metadata:
labels: labels:
{{- include "synatainer.labels" . | nindent 4 }} {{- include "synatainer.labels" . | nindent 4 }}
data: 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_NAME: {{ .Values.postgresql.database | default "synapse" | quote }}
DB_USER: {{ .Values.postgresql.username | default "synapse" | quote }} DB_USER: {{ .Values.postgresql.username | default "synapse" | quote }}
SYNAPSE_HOST: {{ .Values.synapse.url | default "http://matrix-synapse:8008" | quote }} SYNAPSE_HOST: {{ .Values.synapse.url | default "http://matrix-synapse:8008" | quote }}

View file

@ -6,8 +6,8 @@ metadata:
labels: labels:
{{- include "synatainer.labels" . | nindent 4 }} {{- include "synatainer.labels" . | nindent 4 }}
data: data:
PGPASSWORD: {{ .Values.postgresql.password | toString | b64enc }} PGPASSWORD: {{ required "You need to specify a postgres password" .Values.postgresql.password | toString | b64enc }}
BEARER_TOKEN: {{ .Values.synapse.token | toString | b64enc }} BEARER_TOKEN: {{ required "You need to specify a synapse token" .Values.synapse.token | toString | b64enc }}
{{- range $key, $val := .Values.extraSecrets }} {{- range $key, $val := .Values.extraSecrets }}
{{ $key }}: {{ $val | toString | b64enc }} {{ $key }}: {{ $val | toString | b64enc }}

View file

@ -4,20 +4,20 @@ image:
repository: registry.gitlab.com/mb-saces/synatainer repository: registry.gitlab.com/mb-saces/synatainer
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
## Overrides the image tag, for running a different version than the charts. ## Overrides the image tag, for running a different version than the charts.
# tag: latest # tag:
## Connection details for the Synapse database ## Connection details for the Synapse database
postgresql: postgresql:
host: host:
database: # database: synapse
username: # username: synapse
password: password:
## Connection details for the Synapse instance ## Connection details for the Synapse instance
synapse: synapse:
## The URL to the Synapse instance, can either be a cluster-internal or external URL ## 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 ## E.g. http://matrix-synapse.other-matrix-namespace.svc:8008 or https://matrix.example.com
url: # url: http://matrix-synapse:8008
token: token:
## Extra environment variables for configuring synatainer ## Extra environment variables for configuring synatainer