# yaml-language-server: $schema=./values.schema.json
image:
  repository: docker.io/jlesage/filebot
  tag: v26.03.1@sha256:2f8da87d60552d7694b1c285e6c8981c67a34b3923bcf4e635bb02ae4168da51
  pullPolicy: IfNotPresent
securityContext:
  container:
    readOnlyRootFilesystem: false
    runAsNonRoot: false
    runAsUser: 0
    runAsGroup: 0
service:
  main:
    ports:
      main:
        port: 10268
        targetPort: 5800
  vnc:
    enabled: true
    ports:
      vnc:
        enabled: true
        port: 10269
        targetPort: 5900
filebot:
  KEEP_APP_RUNNING: false
  DISPLAY_WIDTH: 1280
  DISPLAY_HEIGHT: 768
  SECURE_CONNECTION: false
  ENABLE_CJK_FONT: false
  OPENSUBTITLES_USERNAME: ""
  OPENSUBTITLES_PASSWORD: ""
  FILEBOT_CUSTOM_OPTIONS: ""
  AMC_INTERVAL: 1800
  AMC_INPUT_STABLE_TIME: 10
  AMC_ACTION: "test"
  AMC_CONFLICT: "auto"
  AMC_MATCH_MODE: "opportunistic"
  AMC_ARTWORK: false
  AMC_LANG: "English"
  AMC_MUSIC_FORMAT: "{plex}"
  AMC_MOVIE_FORMAT: "{plex}"
  AMC_SERIES_FORMAT: "{plex}"
  AMC_ANIME_FORMAT: "{plex}"
  AMC_PROCESS_MUSIC: true
  AMC_SUBTITLE_LANG: ""
  AMC_CUSTOM_OPTIONS: ""
  AMC_INSTALL_PKGS: ""
  USE_FILEBOT_BETA: false
configmap:
  filebot:
    enabled: true
    data:
      ENABLE_CJK_FONT: '{{ ternary "1" "0" .Values.filebot.ENABLE_CJK_FONT }}'
      KEEP_APP_RUNNING: '{{ ternary "1" "0" .Values.filebot.KEEP_APP_RUNNING }}'
      SECURE_CONNECTION: '{{ ternary "1" "0" .Values.filebot.SECURE_CONNECTION }}'
      DISPLAY_WIDTH: "{{ .Values.filebot.DISPLAY_WIDTH }}"
      DISPLAY_HEIGHT: "{{ .Values.filebot.DISPLAY_HEIGHT }}"
      OPENSUBTITLES_USERNAME: "{{ .Values.filebot.OPENSUBTITLES_USERNAME }}"
      OPENSUBTITLES_PASSWORD: "{{ .Values.filebot.OPENSUBTITLES_PASSWORD }}"
      FILEBOT_CUSTOM_OPTIONS: "{{ .Values.filebot.FILEBOT_CUSTOM_OPTIONS }}"
      AMC_INTERVAL: "{{ .Values.filebot.AMC_INTERVAL }}"
      AMC_INPUT_STABLE_TIME: "{{ .Values.filebot.AMC_INPUT_STABLE_TIME }}"
      AMC_ACTION: "{{ .Values.filebot.AMC_ACTION }}"
      AMC_CONFLICT: "{{ .Values.filebot.AMC_CONFLICT }}"
      AMC_MATCH_MODE: "{{ .Values.filebot.AMC_MATCH_MODE }}"
      AMC_ARTWORK: '{{ ternary "y" "n" .Values.filebot.AMC_ARTWORK }}'
      AMC_LANG: "{{ .Values.filebot.AMC_LANG }}"
      AMC_MUSIC_FORMAT: "{{ .Values.filebot.AMC_MUSIC_FORMAT }}"
      AMC_MOVIE_FORMAT: "{{ .Values.filebot.AMC_MOVIE_FORMAT }}"
      AMC_SERIES_FORMAT: "{{ .Values.filebot.AMC_SERIES_FORMAT }}"
      AMC_ANIME_FORMAT: "{{ .Values.filebot.AMC_ANIME_FORMAT }}"
      AMC_PROCESS_MUSIC: '{{ ternary "y" "n" .Values.filebot.AMC_PROCESS_MUSIC }}'
      AMC_SUBTITLE_LANG: "{{ .Values.filebot.AMC_SUBTITLE_LANG }}"
      AMC_CUSTOM_OPTIONS: "{{ .Values.filebot.AMC_CUSTOM_OPTIONS }}"
      AMC_INSTALL_PKGS: "{{ .Values.filebot.AMC_INSTALL_PKGS }}"
      USE_FILEBOT_BETA: '{{ ternary "1" "0" .Values.filebot.USE_FILEBOT_BETA }}'
workload:
  main:
    podSpec:
      containers:
        main:
          securityContext:
            capabilities:
              add:
                - NET_BIND_SERVICE
                - KILL
          probes:
            liveness:
              type: tcp
            readiness:
              type: tcp
            startup:
              type: tcp
          env:
            VNC_PASSWORD: ""
          envFrom:
            - configMapRef:
                name: "filebot"
persistence:
  config:
    enabled: true
    mountPath: /config
  storage:
    enabled: true
    mountPath: /storage
  watch:
    enabled: true
    mountPath: /watch
  output:
    enabled: true
    mountPath: /output
