_persistence.tpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {{- define "handbrake.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.handbrakeStorage.config) | nindent 4 }}
  6. targetSelector:
  7. handbrake:
  8. handbrake:
  9. mountPath: /config
  10. storage:
  11. enabled: true
  12. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.handbrakeStorage.storage) | nindent 4 }}
  13. targetSelector:
  14. handbrake:
  15. handbrake:
  16. mountPath: /storage
  17. output:
  18. enabled: true
  19. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.handbrakeStorage.output) | nindent 4 }}
  20. targetSelector:
  21. handbrake:
  22. handbrake:
  23. mountPath: /output
  24. watch:
  25. enabled: true
  26. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.handbrakeStorage.watch) | nindent 4 }}
  27. targetSelector:
  28. handbrake:
  29. handbrake:
  30. mountPath: /watch
  31. varrun:
  32. enabled: true
  33. type: emptyDir
  34. targetSelector:
  35. handbrake:
  36. handbrake:
  37. mountPath: /var/run
  38. tmp:
  39. enabled: true
  40. type: emptyDir
  41. targetSelector:
  42. handbrake:
  43. handbrake:
  44. mountPath: /tmp
  45. {{- range $idx, $storage := .Values.handbrakeStorage.additionalStorages }}
  46. {{ printf "handbrake-%v:" (int $idx) }}
  47. enabled: true
  48. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  49. targetSelector:
  50. handbrake:
  51. handbrake:
  52. mountPath: {{ $storage.mountPath }}
  53. {{- end }}
  54. {{- end -}}