This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
k8s-cluster-config/common/values.database.yaml

51 lines
1.4 KiB
YAML
Raw Permalink Normal View History

---
ext-database:
templates:
- |
---
apiVersion: kinda.rocks/v1beta1
kind: Database
metadata:
name: "{{ .Values.name }}"
spec:
secretName: "{{ .Values.name }}-creds"
instance: "{{ .Values.instance }}"
2024-02-04 08:31:09 +00:00
deletionProtected: true
backup:
enable: false
cron: 0 0 * * *
2023-12-08 13:10:32 +00:00
{{- if .Values.credentials }}
credentials:
templates:
{{- range $key, $value := .Values.credentials }}
- name: {{ $key }}
template: {{ $value | quote }}
2023-12-08 13:10:32 +00:00
secret: true
{{- end }}
{{- end }}
2024-06-15 10:20:06 +00:00
- |
{{- 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 }}