# yaml-language-server: $schema=./values.schema.json
image:
  repository: docker.io/gaseousgames/gaseousserver
  pullPolicy: IfNotPresent
  tag: v1.7.14@sha256:5e506593ff09533f23e742470da2ef37ffe4051f3559dad3b038e81444df75a6

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

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

gaseous:
  igdb:
    id: ""
    secret: ""

workload:
  main:
    podSpec:
      containers:
        main:
          env:
            dbhost:
              secretKeyRef:
                expandObjectName: false
                name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}'
                key: plainhost
            dbuser: "{{ .Values.mariadb.mariadbUsername }}"
            dbname: "{{ .Values.mariadb.mariadbDatabase }}"
            dbpass: "{{ .Values.mariadb.password }}"
            dbport: 3306
            igdbclientid: "{{ .Values.gaseous.igdb.id }}"
            igdbclientsecret: "{{ .Values.gaseous.igdb.secret }}"

persistence:
  config:
    enabled: true
    mountPath: "/root/.gaseous-server"
  logs:
    enabled: true
    mountPath: "/root/.gaseous-server/Logs"
  data:
    enabled: true
    mountPath: "/root/.gaseous-server/Data"

mariadb:
  enabled: true
  mariadbUsername: gaseous
  mariadbDatabase: gaseous
