diff --git a/templates/jibri/configmaps-other.yaml b/templates/jibri/configmaps-other.yaml new file mode 100644 index 0000000..1bc0eef --- /dev/null +++ b/templates/jibri/configmaps-other.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "jitsi-meet.jibri.fullname" . }}-other + labels: + {{- include "jitsi-meet.jibri.labels" . | nindent 4 }} +data: + finalize.sh: | + {{- if .Values.jibri.custom.contInit._finalize_sh }} + {{- .Values.jibri.custom.contInit._finalize_sh | nindent 4 }} + {{- else }} + # Not using a custom finalize.sh + {{ end }} diff --git a/templates/jibri/deployment.yaml b/templates/jibri/deployment.yaml index 8b08b68..fc18eb9 100644 --- a/templates/jibri/deployment.yaml +++ b/templates/jibri/deployment.yaml @@ -105,6 +105,11 @@ spec: mountPath: /defaults/xorg-video-dummy.conf subPath: xorg-video-dummy.conf {{- end }} + {{- if .Values.jibri.custom.other._finalize_sh }} + - name: custom-other + mountPath: /config/finalize.sh + subPath: finalize.sh + {{- end }} - name: jibri-data mountPath: /data {{- if .Values.jibri.shm.enabled }} @@ -134,6 +139,10 @@ spec: path: autoscaler-sidecar.config - key: xorg-video-dummy.conf path: xorg-video-dummy.conf + - name: custom-other + configMap: + defaultMode: 493 + name: {{ include "jitsi-meet.jibri.fullname" . }}-other - name: jibri-data {{- if .Values.jibri.persistence.enabled }} persistentVolumeClaim: diff --git a/values.yaml b/values.yaml index 24e0047..cb3a937 100644 --- a/values.yaml +++ b/values.yaml @@ -467,6 +467,8 @@ jibri: _jibri_conf: "" _logging_properties: "" _xorg_video_dummy_conf: "" + other: + _finalize_sh: "" serviceAccount: # Specifies whether a service account should be created