-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add onecx db operator configuration
- Loading branch information
1 parent
58555c8
commit 96c126e
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |