Skip to content

Commit

Permalink
Introduce a way to provide a custom finalize script for Jibri
Browse files Browse the repository at this point in the history
  • Loading branch information
spijet committed Oct 10, 2024
1 parent 7190c95 commit 8f9235c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/jibri/configmaps-other.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
9 changes: 9 additions & 0 deletions templates/jibri/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f9235c

Please sign in to comment.