Compare commits
2 Commits
mysql-clus
...
mautrix-di
Author | SHA1 | Date | |
---|---|---|---|
a8bbc84740 | |||
a8b3615f2f |
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: mautrix-discord
|
||||
version: 0.0.2
|
||||
version: 0.1.0
|
||||
description: Chart for Matrix Discord Bridge
|
||||
keywords:
|
||||
- matrix
|
||||
|
@@ -8,34 +8,3 @@ Helper for secret name
|
||||
{{- printf "mautrix-discord-config-secret" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Helper for registration secret name
|
||||
*/}}
|
||||
{{- define "mautrix-discord.registrationSecretName" -}}
|
||||
{{- if .Values.mautrixDiscord.existingRegistrationSecret }}
|
||||
{{- printf "%s" .Values.mautrixDiscord.existingRegistrationSecret -}}
|
||||
{{- else }}
|
||||
{{- printf "mautrix-discord-registration-secret" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Generate registration.yaml if not from existing secret
|
||||
*/}}
|
||||
{{- define "mautrix-discord.registration-yaml" -}}
|
||||
id: {{ .Values.mautrixDiscord.config.appservice.id | quote }}
|
||||
as_token: {{ .Values.mautrixDiscord.config.appservice.as_token | quote }}
|
||||
hs_token: {{ .Values.mautrixDiscord.config.appservice.hs_token | quote }}
|
||||
namespaces:
|
||||
users:
|
||||
- regex: {{ printf "^@discordbot:%s$" (replace "." "\\." .Values.mautrixDiscord.config.homeserver.domain) }}
|
||||
exclusive: true
|
||||
- regex: {{ printf "^@%s:%s$" (replace "{{.}}" ".*" (tpl .Values.mautrixDiscord.config.bridge.username_template .)) (replace "." "\\." .Values.mautrixDiscord.config.homeserver.domain) }}
|
||||
exclusive: true
|
||||
url: {{ .Values.mautrixDiscord.config.appservice.address | quote }}
|
||||
sender_localpart: {{ .Values.mautrixDiscord.registration.sender_localpart | quote }}
|
||||
rate_limited: {{ .Values.mautrixDiscord.registration.rate_limited }}
|
||||
de.sorunome.msc2409.push_ephemeral: true
|
||||
push_ephemeral: true
|
||||
{{- end -}}
|
||||
|
@@ -62,19 +62,12 @@ spec:
|
||||
mountPath: /data/config.yaml
|
||||
subPath: config.yaml
|
||||
readOnly: true
|
||||
- name: registration
|
||||
mountPath: /data/registration.yaml
|
||||
subPath: registration.yaml
|
||||
readOnly: true
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: config
|
||||
secret:
|
||||
secretName: {{ template "mautrix-discord.secretName" . }}
|
||||
- name: registration
|
||||
secret:
|
||||
secretName: {{ template "mautrix-discord.registrationSecretName" . }}
|
||||
- name: data
|
||||
{{- if .Values.persistence.enabled }}
|
||||
persistentVolumeClaim:
|
||||
|
@@ -419,9 +419,3 @@ mautrixDiscord:
|
||||
max_size: 100
|
||||
max_backups: 10
|
||||
compress: true
|
||||
|
||||
# registration.yml contents
|
||||
existingRegistrationSecret: ""
|
||||
registration:
|
||||
rate_limited: false
|
||||
sender_localpart: discordbridgebot
|
||||
|
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: mysql-cluster
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
description: Chart for a mysql cluster
|
||||
keywords:
|
||||
- database
|
||||
|
@@ -54,6 +54,7 @@ cluster:
|
||||
[mysqld]
|
||||
core_file
|
||||
local_infile=off
|
||||
mysql_native_password=ON
|
||||
|
||||
datadirVolumeClaimTemplate:
|
||||
storageClassName: ""
|
||||
|
Reference in New Issue
Block a user