image:
  repository: tccr.io/truecharts/romm
  pullPolicy: IfNotPresent
  tag: v1.8.1@sha256:b8e1b4d352c223b73b049e48aa960827bc59e7587d5b64452a3fa99ca219f71f

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

workload:
  main:
    podSpec:
      containers:
        main:
          probes:
            liveness:
              type: http
            readiness:
              type: http
            startup:
              type: http
          env:
            ROMM_DB_DRIVER: mariadb
            # IGDB client id
            CLIENT_ID: ""
            # IGDB client secret
            CLIENT_SECRET: ""
            # WIP
            STEAMGRIDDB_API_KEY: ""
            DB_PORT: 3306
            DB_NAME: "{{ .Values.mariadb.mariadbDatabase }}"
            DB_USER: "{{ .Values.mariadb.mariadbUsername }}"
            DB_HOST:
              secretKeyRef:
                expandObjectName: false
                name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}'
                key: plainhost
            DB_PASSWD:
              secretKeyRef:
                expandObjectName: false
                name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}'
                key: mariadb-password

service:
  main:
    ports:
      main:
        protocol: http
        targetPort: 80
        port: 10680

persistence:
  romm:
    enabled: true
    mountPath: /romm
  library:
    enabled: true
    mountPath: /romm/library

mariadb:
  enabled: true
  mariadbUsername: romm
  mariadbDatabase: romm

portal:
  open:
    enabled: true
