Skip to content

Commit

Permalink
Enable video driver mounting for the common chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Wattos committed Jun 1, 2023
1 parent 66f80b3 commit 5d46a34
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: common
version: "1.0.2"
version: "1.0.3"
kubeVersion: ">=1.23.0-0"
description: The common chart
appVersion: "v1"
Expand Down
14 changes: 14 additions & 0 deletions charts/common/templates/_deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ spec:
- name: {{ include "common.names.name" . }}-media
mountPath: /media
{{- end }}
{{- if .Values.storage.mounts.videoDriver.enabled }}
- name: {{ include "common.names.name" . }}-video
mountPath: {{ .Values.storage.mounts.videoDriver.path }}
{{- end }}

volumes:
{{- if .Values.storage.mounts.config.enabled }}
- name: {{ include "common.names.name" . }}-config
Expand All @@ -48,5 +53,14 @@ spec:
server: "{{ .Values.storage.mounts.media.volume.nfs.server }}"
path: "{{ .Values.storage.mounts.media.volume.nfs.path }}"
{{- end }}
{{- if .Values.storage.mounts.videoDriver.enabled }}
- name: {{ include "common.names.name" . }}-video
hostPath:
path: {{ .Values.storage.mounts.videoDriver.path }}
{{- end }}
{{- if .Values.storage.mounts.videoDriver.enabled }}
securityContext:
privileged: true
{{- end }}
{{- end -}}
{{- end -}}
5 changes: 5 additions & 0 deletions charts/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ storage:
nfs:
path:
server:

videoDriver:
enabled: false
path:


0 comments on commit 5d46a34

Please sign in to comment.