image:
  repository: tccr.io/truecharts/metabase
  pullPolicy: IfNotPresent
  tag: v0.47.1@sha256:3ea3cb8015cc90680b1864f01b17a00c7e341589e8ddd0ff8a805f56169151a0

service:
  main:
    ports:
      main:
        protocol: http
        port: 13030

workload:
  main:
    podSpec:
      containers:
        main:
          env:
            MB_JETTY_PORT: "{{ .Values.service.main.ports.main.port }}"
            JAVA_TIMEZONE: "{{ .Values.TZ }}"
            MB_DB_TYPE: "postgres"
            MB_DB_USER: "{{ .Values.cnpg.main.user }}"
            MB_DB_DBNAME: "{{ .Values.cnpg.main.database }}"
            MB_DB_PORT: 5432
            MB_DB_HOST:
              secretKeyRef:
                name: cnpg-main-urls
                key: host
            MB_DB_PASS:
              secretKeyRef:
                name: cnpg-main-user
                key: password

persistence:
  plugins:
    enabled: true
    mountPath: "/plugins"

# Enabled postgres
cnpg:
  main:
    enabled: true
    user: metabase
    database: metabase

portal:
  open:
    enabled: true
