51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
|
---
|
||
|
ext-database:
|
||
|
templates:
|
||
|
- |
|
||
|
---
|
||
|
apiVersion: kinda.rocks/v1beta1
|
||
|
kind: Database
|
||
|
metadata:
|
||
|
name: "{{ .Values.name }}"
|
||
|
spec:
|
||
|
secretName: "{{ .Values.name }}-creds"
|
||
|
instance: "{{ .Values.instance }}"
|
||
|
deletionProtected: true
|
||
|
backup:
|
||
|
enable: false
|
||
|
cron: 0 0 * * *
|
||
|
{{- if .Values.credentials }}
|
||
|
credentials:
|
||
|
templates:
|
||
|
{{- range $key, $value := .Values.credentials }}
|
||
|
- name: {{ $key }}
|
||
|
template: {{ $value | quote }}
|
||
|
secret: true
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
|
||
|
- |
|
||
|
{{- if (.Values.extraDatabase).enabled }}
|
||
|
---
|
||
|
apiVersion: kinda.rocks/v1beta1
|
||
|
kind: Database
|
||
|
metadata:
|
||
|
name: "{{ .Values.extraDatabase.name }}"
|
||
|
spec:
|
||
|
secretName: "{{ .Values.extraDatabase.name }}-creds"
|
||
|
instance: "{{ .Values.extraDatabase.instance }}"
|
||
|
deletionProtected: true
|
||
|
backup:
|
||
|
enable: false
|
||
|
cron: 0 0 * * *
|
||
|
{{- if .Values.extraDatabase.credentials }}
|
||
|
credentials:
|
||
|
templates:
|
||
|
{{- range $key, $value := .Values.extraDatabase.credentials }}
|
||
|
- name: {{ $key }}
|
||
|
template: {{ $value }}
|
||
|
secret: true
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|