# yaml-language-server: $schema=./values.schema.json
image:
  repository: ghcr.io/taxel/plextraktsync
  tag: 0.35.1@sha256:7cf29b8f92b8303e6cced18a275af324fbad06b565858c838ce5a902d792c100
  pullPolicy: IfNotPresent

securityContext:
  container:
    runAsNonRoot: false
    readOnlyRootFilesystem: false
    runAsUser: 0
    runAsGroup: 0

service:
  main:
    enabled: false
    ports:
      main:
        enabled: false

plextraktsync:
  cron_enabled: true
  task: "sync"
  schedule: "0 */6 * * *"

workload:
  main:
    podSpec:
      containers:
        main:
          tty: true
          stdin: true
          probes:
            liveness:
              enabled: false
            readiness:
              enabled: false
            startup:
              enabled: false
  plextraktsync-cron:
    enabled: "{{ .Values.plextraktsync.cron_enabled }}"
    type: CronJob
    schedule: "{{ .Values.plextraktsync.schedule }}"
    podSpec:
      restartPolicy: Never
      containers:
        cron:
          primary: true
          enabled: true
          imageSelector: "image"
          probes:
            liveness:
              enabled: false
            readiness:
              enabled: false
            startup:
              enabled: false
          args:
            - "{{ .Values.plextraktsync.task }}"

persistence:
  config:
    enabled: true
    targetSelector:
      main:
        main:
          mountPath: /app/config
      plextraktsync-cron:
        cron:
          mountPath: /app/config
