Created chart and CI/CD

This commit is contained in:
2023-03-19 22:43:41 +00:00
parent 9f91f4efe5
commit 520bfbb549
19 changed files with 40 additions and 11 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: "kci.rocks/v1alpha1"
kind: "Database"
metadata:
name: {{ include "..fullname" . }}-db
labels:
{{- include "..labels" . | nindent 8 }}
spec:
secretName: {{ include "..fullname" . }}-db-auth
instance: {{ .Values.global.dbInstance | default "kincaid" }}
deletionProtected: yes
backup:
enable: No
cron: "0 0 * * *"
secretsTemplates:
PMA_HOST:{{` "{{ .DatabaseHost }}" `}}
PMA_PORT:{{` "{{ .DatabasePort }}" `}}
PMA_USER:{{` "{{ .UserName }}" `}}
PMA_PASS:{{` "{{ .Password }}" `}}
PMA_NAME:{{` "{{ .DatabaseName }}" `}}
DATABASE_URL:{{` "{{ .Protocol }}://{{ .UserName }}:{{ .Password }}@{{ .DatabaseHost }}:{{ .DatabasePort }}/{{ .DatabaseName }}" `}}