ingress:
  web:
    enabled: true
    annotations:
      cert-manager.io/cluster-issuer: "root-ca-issuer"
      cert-manager.io/duration: 8760h
      cert-manager.io/renew-before: 720h
      k8s.apisix.apache.org/plugin-config-name: oidc-keycloak-authz
    ingressClassName: "apisix"
    pathType: "Prefix"  
    hosts:
      - name: "{{ .Name }}.{{ .Domain }}"
        tls:
          enabled: true
          secretName: "{{ .Name }}-tls-secret"

executor: "KubernetesExecutor"

config:
  core:
    executor: KubernetesExecutor
    default_timezone: kst
  logging:
    colored_console_log: "False"
    logging_level: "INFO"
  webserver:
    enable_proxy_fix: "True"
    rbac: "True"
    default_ui_timezone: kst

scheduler:
  replicas: 1

dags:
  persistence:
    enabled: true
    size: 5Gi
    storageClassName: longhorn
    accessMode: ReadWriteMany
  gitSync:
    enabled: true
    repo: "$dags.gitSync.repo"
    branch: master
    rev: HEAD
    depth: 1
    subPath: ""
    credentialsSecret: "$INFISICAL_SECRET"
    env:
      - name: GIT_SSL_NO_VERIFY
        value: "true"

webserver:
  defaultUser:
    enabled: true
    password: "$webserver.defaultUser.password"
  livenessProbe:
    initialDelaySeconds: 120
  readinessProbe:
    initialDelaySeconds: 120
  startupProbe:
    initialDelaySeconds: 30
  webserverConfig: |
    AUTH_ROLE_PUBLIC = 'User'

logs:
  persistence:
    enabled: true
    size: 5Gi
    storageClassName: longhorn

statsd:
  enabled: false

postgresql:
  enabled: true
  auth:
    username: "postgres"
    existingSecret: "$INFISICAL_SECRET"
    secretKeys:
      userPasswordKey: "postgres-password"
  primary:
    persistence:
      enabled: true
      size: 8Gi
      storageClass: ""

migrateDatabaseJob:
  useHelmHooks: false

data:
  metadataSecretName: "$INFISICAL_SECRET"