From b9b16cd6ad48ad2742160be12c649d2c5cfa34b7 Mon Sep 17 00:00:00 2001 From: alexlebens Date: Wed, 10 Jul 2024 15:18:27 -0500 Subject: [PATCH] add mautrix discord and whatsapp --- .../cl01tl/platform/matrix-synapse/Chart.yaml | 8 ++++++ .../templates/external-secret.yaml | 25 +++++++++++++++++++ .../platform/matrix-synapse/values.yaml | 7 ++++++ 3 files changed, 40 insertions(+) diff --git a/clusters/cl01tl/platform/matrix-synapse/Chart.yaml b/clusters/cl01tl/platform/matrix-synapse/Chart.yaml index 44ad28d22..224c316f2 100644 --- a/clusters/cl01tl/platform/matrix-synapse/Chart.yaml +++ b/clusters/cl01tl/platform/matrix-synapse/Chart.yaml @@ -37,6 +37,14 @@ dependencies: alias: matrix-hookshot version: 3.2.1 repository: https://bjw-s.github.io/helm-charts/ + - name: app-template + alias: mautrix-discord + repository: https://bjw-s.github.io/helm-charts/ + version: 3.2.1 + - name: app-template + alias: mautrix-whatsapp + repository: https://bjw-s.github.io/helm-charts/ + version: 3.2.1 - name: redis alias: redis-synapse version: 19.6.1 diff --git a/clusters/cl01tl/platform/matrix-synapse/templates/external-secret.yaml b/clusters/cl01tl/platform/matrix-synapse/templates/external-secret.yaml index d2126565a..becf646e0 100644 --- a/clusters/cl01tl/platform/matrix-synapse/templates/external-secret.yaml +++ b/clusters/cl01tl/platform/matrix-synapse/templates/external-secret.yaml @@ -139,6 +139,31 @@ spec: metadataPolicy: None property: registration +--- +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: double-puppet-registration-secret + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: double-puppet-registration-secret + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} + app.kubernetes.io/component: web + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + secretStoreRef: + kind: ClusterSecretStore + name: vault + data: + - secretKey: double-puppet-registration.yaml + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /cl01tl/matrix-synapse/doublepuppet + metadataPolicy: None + property: registration + --- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret diff --git a/clusters/cl01tl/platform/matrix-synapse/values.yaml b/clusters/cl01tl/platform/matrix-synapse/values.yaml index c24e74eac..316b2583b 100644 --- a/clusters/cl01tl/platform/matrix-synapse/values.yaml +++ b/clusters/cl01tl/platform/matrix-synapse/values.yaml @@ -34,6 +34,9 @@ matrix-synapse: - name: mautrix-whatsapp-config-secret secret: secretName: mautrix-whatsapp-config-secret + - name: double-puppet-registration-secret + secret: + secretName: double-puppet-registration-secret extraVolumeMounts: - name: matrix-synapse-config-secret mountPath: /synapse/config/conf.d/oidc.yaml @@ -55,6 +58,10 @@ matrix-synapse: mountPath: /synapse/config/conf.d/mautrix-whatsapp-registration.yaml subPath: mautrix-whatsapp-registration.yaml readOnly: true + - name: double-puppet-registration-secret + mountPath: /synapse/config/conf.d/double-puppet-registration.yaml + subPath: double-puppet-registration.yaml + readOnly: true resources: requests: cpu: 100m