Skip to content

Commit

Permalink
feat: add onecx db operator configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Dec 15, 2023
1 parent 58555c8 commit 96c126e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions templates/db-operator.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 96c126e

Please sign in to comment.