Created chart and CI/CD
This commit is contained in:
20
Chart/templates/database.yaml
Normal file
20
Chart/templates/database.yaml
Normal 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 }}" `}}
|
||||
Reference in New Issue
Block a user