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