image:
  repository: tccr.io/truecharts/makemkv
  tag: v1.22.0@sha256:2da789a349c1b0ee0bc13a4ea3e7eb20baf3e76d53daefdce5c97f025feae17c
  pullPolicy: IfNotPresent

securityContext:
  readOnlyRootFilesystem: false
  runAsNonRoot: false

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0

secretEnv:
  VNC_PASSWORD: ""

envFrom:
  - configMapRef:
      name: '{{ include "tc.common.names.fullname" . }}-makemkv'

makemkv:
  # General Settings
  KEEP_APP_RUNNING: false
  # GUI Settings
  DISPLAY_WIDTH: 1280
  DISPLAY_HEIGHT: 768
  # App Settings
  MAKEMKV_KEY: "BETA"
  AUTO_DISC_RIPPER_INTERVAL: 5
  AUTO_DISC_RIPPER_BD_MODE: "mkv"
  AUTO_DISC_RIPPER_MAKEMKV_PROFILE: ""
  SECURE_CONNECTION: false
  ENABLE_CJK_FONT: false
  AUTO_DISC_RIPPER: false
  AUTO_DISC_RIPPER_EJECT: false
  AUTO_DISC_RIPPER_PARALLEL_RIP: false
  AUTO_DISC_RIPPER_NO_GUI_PROGRESS: false
  AUTO_DISC_RIPPER_FORCE_UNIQUE_OUTPUT_DIR: false

service:
  main:
    ports:
      main:
        port: 10180
        targetPort: 5800
  vnc:
    enabled: true
    ports:
      vnc:
        enabled: true
        port: 10181
        targetPort: 5900

configmap:
  makemkv:
    enabled: true
    data:
      ENABLE_CJK_FONT: "{{ ternary \"1\" \"0\" .Values.makemkv.ENABLE_CJK_FONT }}"
      KEEP_APP_RUNNING: "{{ ternary \"1\" \"0\" .Values.makemkv.KEEP_APP_RUNNING }}"
      SECURE_CONNECTION: "{{ ternary \"1\" \"0\" .Values.makemkv.SECURE_CONNECTION }}"
      DISPLAY_WIDTH: "{{ .Values.makemkv.DISPLAY_WIDTH }}"
      DISPLAY_HEIGHT: "{{ .Values.makemkv.DISPLAY_HEIGHT }}"
      MAKEMKV_KEY: "{{ .Values.makemkv.MAKEMKV_KEY }}"
      AUTO_DISC_RIPPER_INTERVAL: "{{ .Values.makemkv.AUTO_DISC_RIPPER_INTERVAL }}"
      AUTO_DISC_RIPPER_BD_MODE: "{{ .Values.makemkv.AUTO_DISC_RIPPER_BD_MODE }}"
      AUTO_DISC_RIPPER_MAKEMKV_PROFILE: "{{ .Values.makemkv.AUTO_DISC_RIPPER_MAKEMKV_PROFILE }}"
      AUTO_DISC_RIPPER: "{{ ternary \"1\" \"0\" .Values.makemkv.AUTO_DISC_RIPPER }}"
      AUTO_DISC_RIPPER_EJECT: "{{ ternary \"1\" \"0\" .Values.makemkv.AUTO_DISC_RIPPER_EJECT }}"
      AUTO_DISC_RIPPER_PARALLEL_RIP: "{{ ternary \"1\" \"0\" .Values.makemkv.AUTO_DISC_RIPPER_PARALLEL_RIP }}"
      AUTO_DISC_RIPPER_NO_GUI_PROGRESS: "{{ ternary \"1\" \"0\" .Values.makemkv.AUTO_DISC_RIPPER_NO_GUI_PROGRESS }}"
      AUTO_DISC_RIPPER_FORCE_UNIQUE_OUTPUT_DIR: "{{ ternary \"1\" \"0\" .Values.makemkv.AUTO_DISC_RIPPER_FORCE_UNIQUE_OUTPUT_DIR }}"

persistence:
  config:
    enabled: true
    mountPath: "/config"
  storage:
    enabled: true
    mountPath: "/storage"
  output:
    enabled: true
    mountPath: "/output"
