Files
chart/library/ix-dev/community/handbrake/templates/_persistence.tpl
Stavros Kois df964fd77b Adds Handbrake (#2024)
* initial commit

* add chartfiles

* 2 more tempaltes

* add initial templates/values

* basic values

* add extra test values

* add readme

* fix storage

* add metadata

* add kill cap

* rofs false

* chown

* emptydirs

* hmm

* more caps

* more caps

* update meta

* 2 more

* fix dataset names
2024-01-12 14:26:17 +02:00

55 lines
1.5 KiB
Smarty

{{- define "handbrake.persistence" -}}
persistence:
config:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.handbrakeStorage.config) | nindent 4 }}
targetSelector:
handbrake:
handbrake:
mountPath: /config
storage:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.handbrakeStorage.storage) | nindent 4 }}
targetSelector:
handbrake:
handbrake:
mountPath: /storage
output:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.handbrakeStorage.output) | nindent 4 }}
targetSelector:
handbrake:
handbrake:
mountPath: /output
watch:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.handbrakeStorage.watch) | nindent 4 }}
targetSelector:
handbrake:
handbrake:
mountPath: /watch
varrun:
enabled: true
type: emptyDir
targetSelector:
handbrake:
handbrake:
mountPath: /var/run
tmp:
enabled: true
type: emptyDir
targetSelector:
handbrake:
handbrake:
mountPath: /tmp
{{- range $idx, $storage := .Values.handbrakeStorage.additionalStorages }}
{{ printf "handbrake-%v:" (int $idx) }}
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
targetSelector:
handbrake:
handbrake:
mountPath: {{ $storage.mountPath }}
{{- end }}
{{- end -}}