From d7b2494de5a20fbb19913dd1b9f3986e688f3f96 Mon Sep 17 00:00:00 2001 From: emrah Date: Wed, 24 Jan 2024 09:35:36 +0300 Subject: [PATCH] enabled jibri secret template but conditional data --- templates/jibri/xmpp-secret.yaml | 2 +- values.yaml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/templates/jibri/xmpp-secret.yaml b/templates/jibri/xmpp-secret.yaml index 441908f..3b0f4ea 100644 --- a/templates/jibri/xmpp-secret.yaml +++ b/templates/jibri/xmpp-secret.yaml @@ -1,4 +1,3 @@ -{{- if .Values.jibri.enabled }} apiVersion: v1 kind: Secret metadata: @@ -7,6 +6,7 @@ metadata: {{- include "jitsi-meet.jibri.labels" . | nindent 4 }} type: Opaque data: +{{- if .Values.jibri.enabled }} JIBRI_XMPP_USER: '{{ .Values.jibri.xmpp.user | b64enc }}' JIBRI_XMPP_PASSWORD: '{{ default (randAlphaNum 10) .Values.jibri.xmpp.password | b64enc }}' JIBRI_RECORDER_USER: '{{ .Values.jibri.recorder.user | b64enc }}' diff --git a/values.yaml b/values.yaml index 7f49f1a..bf33295 100644 --- a/values.yaml +++ b/values.yaml @@ -410,16 +410,15 @@ prosody: server: extraEnvFrom: - secretRef: - name: '{{ include "prosody.fullname" . }}-jigasi' + name: '{{ include "prosody.fullname" . }}-jibri' - secretRef: name: '{{ include "prosody.fullname" . }}-jicofo' + - secretRef: + name: '{{ include "prosody.fullname" . }}-jigasi' - secretRef: name: '{{ include "prosody.fullname" . }}-jvb' - configMapRef: name: '{{ include "prosody.fullname" . }}-common' - ## Uncomment this if you want to use jibri: - # - secretRef: - # name: '{{ include "prosody.fullname" . }}-jibri' image: repository: jitsi/prosody tag: 'stable-9111'