Skip to content

Commit 5b60aaa

Browse files
authored
Merge pull request #40 from element-hq:rdanzey/fix-element-call-config
element-call - Allow the config key to template directly into config so that parameters don't need to be enumerated in chart
2 parents a4335b9 + e473616 commit 5b60aaa

File tree

3 files changed

+8
-24
lines changed

3 files changed

+8
-24
lines changed

charts/element-call/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type: application
66

77
# This version number should be incremented each time you make changes
88
# to the chart and its templates, including the app version.
9-
version: "0.1.8"
9+
version: "0.2.0"
1010

1111
# This version number should be incremented each time you make changes
1212
# to the application.

charts/element-call/templates/config-template.yaml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,4 @@ metadata:
44
name: {{ .Release.Name }}-configmap
55
data:
66
config.json: |
7-
{
8-
"default_server_config": {
9-
"m.homeserver": {
10-
"base_url": "{{ .Values.config.homeserver.base_url }}",
11-
"server_name": "{{ .Values.config.homeserver.server_name }}"
12-
}
13-
},
14-
"livekit": {
15-
"livekit_service_url": "{{ .Values.config.livekit.livekit_service_url }}"
16-
},
17-
"posthog": {
18-
"api_key": "{{ .Values.config.posthog.api_key }}",
19-
"api_host": "{{ .Values.config.posthog.api_host }}"
20-
},
21-
"rageshake": {
22-
"submit_url": "{{ .Values.config.rageshake.submit_url }}"
23-
},
24-
"eula": "{{ .Values.config.eula_url }}"
25-
}
7+
{{ toPrettyJson .Values.config | nindent 4 }}

charts/element-call/values.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,16 @@ tolerations: []
8282
affinity: {}
8383

8484
config:
85-
homeserver:
86-
base_url: http://localhost:8008
87-
server_name: localhost
85+
default_server_config:
86+
m.homeserver:
87+
base_url: http://localhost:8008
88+
server_name: localhost
8889
livekit:
8990
livekit_service_url: https://localhost/
9091
posthog:
9192
api_key:
9293
api_host: https://localhost
9394
rageshake:
9495
submit_url:
95-
eula_url:
96+
eula:
97+
url: ""

0 commit comments

Comments
 (0)