fix(synapse): fix custom config and don't decode stringData
This commit is contained in:
@@ -24,7 +24,7 @@ maintainers:
|
||||
name: synapse
|
||||
sources: []
|
||||
type: application
|
||||
version: 0.0.4
|
||||
version: 0.0.5
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- cloud
|
||||
|
||||
@@ -83,68 +83,20 @@ questions:
|
||||
attrs:
|
||||
# Include{fixedEnv}
|
||||
# Include{containerConfig}
|
||||
- variable: coturn
|
||||
|
||||
- variable: synapse
|
||||
group: "Container Configuration"
|
||||
label: "Coturn Configuration"
|
||||
label: "Synapse Configuration"
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: enabled
|
||||
label: "Enable Coturn"
|
||||
- variable: loadCustomConfig
|
||||
label: "Load Custom Config"
|
||||
description: "Load custom config located in /data/custom.yaml"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: mail
|
||||
group: "Container Configuration"
|
||||
label: "Mail Configuration"
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: enabled
|
||||
label: "Enable Mail"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: from
|
||||
label: "From: "
|
||||
schema:
|
||||
type: string
|
||||
default: "Matrix <matrix@example.com>"
|
||||
- variable: riotUrl
|
||||
label: "Riot URL"
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
- variable: host
|
||||
label: "Host"
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
- variable: port
|
||||
label: "Port"
|
||||
schema:
|
||||
type: int
|
||||
default: 25
|
||||
- variable: username
|
||||
label: "Username"
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
- variable: password
|
||||
label: "Password"
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
private: true
|
||||
- variable: requireTransportSecurity
|
||||
label: "Require Transport Security"
|
||||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
- variable: matrix
|
||||
group: "Container Configuration"
|
||||
@@ -346,6 +298,70 @@ questions:
|
||||
type: string
|
||||
default: "WARNING"
|
||||
|
||||
- variable: mail
|
||||
group: "Container Configuration"
|
||||
label: "Mail Configuration"
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: enabled
|
||||
label: "Enable Mail"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: from
|
||||
label: "From: "
|
||||
schema:
|
||||
type: string
|
||||
default: "Matrix <matrix@example.com>"
|
||||
- variable: riotUrl
|
||||
label: "Riot URL"
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
- variable: host
|
||||
label: "Host"
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
- variable: port
|
||||
label: "Port"
|
||||
schema:
|
||||
type: int
|
||||
default: 25
|
||||
- variable: username
|
||||
label: "Username"
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
- variable: password
|
||||
label: "Password"
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
private: true
|
||||
- variable: requireTransportSecurity
|
||||
label: "Require Transport Security"
|
||||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
- variable: coturn
|
||||
group: "Container Configuration"
|
||||
label: "Coturn Configuration"
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: enabled
|
||||
label: "Enable Coturn"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- variable: service
|
||||
group: "Networking and Services"
|
||||
label: "Configure Service(s)"
|
||||
|
||||
@@ -41,11 +41,11 @@ stringData:
|
||||
{{- end }}
|
||||
|
||||
{{- if $previous }}
|
||||
{{- $msk = ( index $previous.data "macaroon_secret_key" ) | b64dec }}
|
||||
{{- $msk = ( index $previous.data "macaroon_secret_key" ) }}
|
||||
macaroon_secret_key: {{ ( index $previous.data "macaroon_secret_key" ) }}
|
||||
{{- else }}
|
||||
{{- $msk = randAlphaNum 50 }}
|
||||
macaroon_secret_key: {{ $msk | b64enc | quote }}
|
||||
macaroon_secret_key: {{ $msk | quote }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.coturn.enabled -}}
|
||||
|
||||
Reference in New Issue
Block a user