image:
  repository: tccr.io/truecharts/pydio-cells
  pullPolicy: IfNotPresent
  tag: 4.0.6@sha256:1cdc282e7fb1a8c99dd104e5142713fbd796090a12628ead8fea23ea8c107404

securityContext:
  readOnlyRootFilesystem: false
  runAsNonRoot: false

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0

configmap:
  install:
    enabled: true
    data:
      pydiocells-install: |-
        frontendapplicationtitle: {{ .Values.pydioinstall.title }}
        frontendlogin: {{ .Values.pydioinstall.username }}
        frontendpassword: {{ .Values.pydioinstall.password }}
        frontendrepeatpassword: {{ .Values.pydioinstall.password }}
        dbconnectiontype: tcp
        dbtcphostname: {{ printf "%v-%v" .Release.Name "mariadb" }}
        dbtcpport: 3306
        dbtcpname: {{ .Values.mariadb.mariadbDatabase }}
        dbtcpuser: {{ .Values.mariadb.mariadbUsername }}
        dbtcppassword: {{ .Values.mariadb.mariadbPassword | trimAll "\"" }}

env:
  CELLS_EXTERNAL: ""
  CELLS_GRPC_EXTERNAL: "{{ .Values.service.gprc.ports.gprc.port }}"
  CELLS_HEALTHCHECK: "{{ .Values.service.healthcheck.ports.healthcheck.port }}"
  CELLS_BIND: "0.0.0.0:{{ .Values.service.main.ports.main.port }}"
  CELLS_WORKING_DIR: "/cells"
  CELLS_DATA_DIR: "/cells/data"
  CELLS_LOG_DIR: "/cells/logs"
  CELLS_SERVICES_DIR: "/cells/services"
  CELLS_INSTALL_YAML: "/cells/install.yml"

pydioinstall:
  username: "admin"
  password: "supersecret"
  title: "Pydio Cells"

probes:
  liveness:
    custom: true
    spec:
      httpGet:
        scheme: HTTP
        path: "/healthcheck"
        port: 10162
  readiness:
    custom: true
    spec:
      httpGet:
        scheme: HTTP
        path: "/healthcheck"
        port: 10162
  startup:
    custom: true
    spec:
      httpGet:
        scheme: HTTP
        path: "/healthcheck"
        port: 10162

service:
  main:
    ports:
      main:
        protocol: HTTPS
        port: 10150
  gprc:
    enabled: true
    ports:
      gprc:
        enabled: true
        port: 33060
  healthcheck:
    enabled: true
    ports:
      healthcheck:
        enabled: true
        port: 10162

persistence:
  cells:
    enabled: true
    mountPath: "/cells"
  data:
    enabled: true
    mountPath: "/cells/data"
  logs:
    enabled: true
    mountPath: "/cells/logs"
  services:
    enabled: true
    mountPath: "/cells/services"
  pydiocells-install:
    enabled: "true"
    mountPath: "/cells/install.yml"
    subPath: "pydiocells-install"
    type: "custom"
    volumeSpec:
      configMap:
        name: '{{ printf "%v-install" (include "tc.common.names.fullname" .) }}'

mariadb:
  enabled: true
  mariadbUsername: pydiocells
  mariadbDatabase: pydiocells
  existingSecret: "mariadbcreds"

portal:
  enabled: true
