File tree 3 files changed +16
-2
lines changed
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ apiVersion: v2
2
2
appVersion : " 8.7.0"
3
3
description : A Helm chart for Kubernetes
4
4
name : alerta-web
5
- version : 0.1.2
5
+ version : 0.1.3
6
6
home : https://github.com/hayk96/alerta-web
7
7
icon : https://raw.githubusercontent.com/hayk96/alerta-web/main/logo/mstile-310x310.png.png
8
8
dependencies :
9
9
- name : postgresql
10
10
version : " 10.16.2"
11
- repository : https://charts.bitnami .com/bitnami
11
+ repository : https://raw.githubusercontent .com/bitnami/charts/archive-full-index /bitnami
12
12
condition : postgresql.enabled
13
13
sources :
14
14
- https://github.com/alerta/alerta
Original file line number Diff line number Diff line change 8
8
{{- end }}
9
9
{{ if .Values.postgresql.enabled -}}
10
10
DATABASE_URL = "postgresql://{{ .Values.postgresql.postgresqlUsername }}:{{ .Values.postgresql.postgresqlPassword }}@{{ .Release.Name }}-postgresql:5432/{{ .Values.postgresql.postgresqlDatabase }}"
11
+ {{ else if and (.Values.useExistingDatabase) (eq .Values.useExistingDatabase.type "postgresql") }}
12
+ {{ if eq .Values.useExistingDatabase.type "postgresql" }}
13
+ DATABASE_URL = "postgresql://{{- if .Values.useExistingDatabase.auth.enabled -}}{{ .Values.useExistingDatabase.auth.username }}:{{ .Values.useExistingDatabase.auth.password }}@{{- end -}}{{ .Values.useExistingDatabase.endpoint }}/{{ .Values.useExistingDatabase.database }}"
14
+ {{- end }}
11
15
{{- end }}
12
16
{{- if .Values.alertaWebUIConfig }}
13
17
config.js : |
Original file line number Diff line number Diff line change @@ -82,3 +82,13 @@ postgresql:
82
82
persistence :
83
83
enabled : true
84
84
size : 1Gi
85
+
86
+ # Use already existing database. Currently, supported type is Postgres with version 11.x
87
+ useExistingDatabase : {}
88
+ # type: postgresql
89
+ # endpoint: example-postgresql.default.svc:5432
90
+ # database: EXISTING_DATABASE_NAME
91
+ # auth:
92
+ # enabled: true
93
+ # username: EXISTING_USERNAME
94
+ # password: EXISTING_PASSWORD
You can’t perform that action at this time.
0 commit comments