# yaml-language-server: $schema=./values.schema.json
image:
  pullPolicy: IfNotPresent
  repository: docker.io/vallezw/sheetable
  tag: v0.8.1@sha256:87db05053f61e89ead0ac2a97e1ec28335e6aec8bac1f01d352229fea880a207
persistence:
  config:
    enabled: true
    mountPath: /app/config

cnpg:
  main:
    enabled: true
    user: sheetable
    database: sheetable
secretEnv:
  ADMIN_EMAIL: email@domain.com
  ADMIN_PASSWORD: changeme
service:
  main:
    ports:
      main:
        port: 10284
        protocol: http
workload:
  main:
    podSpec:
      containers:
        main:
          env:
            API_SECRET:
              secretKeyRef:
                key: API_SECRET
                name: sheetable-secrets
            CONFIG_PATH: /app/config/
            DB_DRIVER: postgres
            DB_HOST:
              secretKeyRef:
                name: cnpg-main-urls
                key: host
            DB_NAME: "{{ .Values.cnpg.main.database }}"
            DB_PASSWORD:
              secretKeyRef:
                name: cnpg-main-user
                key: password
            DB_PORT: "5432"
            DB_USER: "{{ .Values.cnpg.main.user }}"
            PORT: "{{ .Values.service.main.ports.main.port }}"
