From 96c126e8f63abfabceb8cce06d4959e0f72c5646 Mon Sep 17 00:00:00 2001 From: Andrej Petras Date: Fri, 15 Dec 2023 19:45:41 +0100 Subject: [PATCH] feat: add onecx db operator configuration --- templates/db-operator.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 templates/db-operator.yaml diff --git a/templates/db-operator.yaml b/templates/db-operator.yaml new file mode 100644 index 0000000..5d0dba1 --- /dev/null +++ b/templates/db-operator.yaml @@ -0,0 +1,18 @@ +{{- if .Values.db.enabled }} +{{ if .Values.db.operator }} +apiVersion: onecx.github.io/v1 +kind: Database +metadata: + name: {{ template "quarkus.fullname" $ }}-db + labels: + app: {{ template "quarkus.fullname" $ }} +{{ include "quarkus.labels.common" $ | indent 4 }} +spec: + host: {{ include "quarkus.db.host" $ }} + name: {{ include "quarkus.db.database" $ }} + user: {{ include "quarkus.db.username" $ }} + password-key: "password" + password-secrets: {{ template "quarkus.fullname" $ }}-db-config + schema: {{ include "quarkus.db.username" $ }} +{{- end }} +{{- end }}