cozystack/packages/system/harbor/templates/database.yaml
Aleksei Sviridkin 199ffe319a
fix(harbor): set UTF-8 encoding and locale for CNPG database
Add encoding, localeCollate, and localeCType to initdb bootstrap
configuration to ensure fulltext search (ilike) works correctly.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-02-18 11:26:58 +03:00

31 lines
665 B
YAML

---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: {{ .Values.harbor.fullnameOverride }}-db
spec:
instances: {{ .Values.db.replicas }}
storage:
size: {{ .Values.db.size }}
{{- with .Values.db.storageClass }}
storageClass: {{ . }}
{{- end }}
bootstrap:
initdb:
database: app
owner: app
encoding: UTF8
localeCollate: en_US.UTF-8
localeCType: en_US.UTF-8
monitoring:
enablePodMonitor: true
resources:
limits:
cpu: "1"
memory: 2048Mi
requests:
cpu: 100m
memory: 512Mi
inheritedMetadata:
labels:
policy.cozystack.io/allow-to-apiserver: "true"