apiVersion: v1
kind: ConfigMap
metadata:
  name: prisma-configmap
  namespace: prisma
  labels:
    stage: production
    name: prisma 
    app: prisma
data:
  PRISMA_CONFIG: |
    port: {{ .Values.prisma.port }}
    # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
    # managementApiSecret: my-secret
    databases:
      default:
        connector: {{ .Values.prisma.database.connector }}
        host: {{ .Values.prisma.database.host }}
        port: {{ .Values.prisma.database.port }}
        user: {{ .Values.prisma.database.user }}
        password: {{ .Values.prisma.database.password }}
        migrations: true
