Skip to content

Commit b647e37

Browse files
authored
Alerta web 0.1.3 (#21)
* Added useExistingDatabase key * Updated dependencies. Using bitnami-full-index * Bump chart version
1 parent bcfe84d commit b647e37

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

charts/alerta-web/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ apiVersion: v2
22
appVersion: "8.7.0"
33
description: A Helm chart for Kubernetes
44
name: alerta-web
5-
version: 0.1.2
5+
version: 0.1.3
66
home: https://github.com/hayk96/alerta-web
77
icon: https://raw.githubusercontent.com/hayk96/alerta-web/main/logo/mstile-310x310.png.png
88
dependencies:
99
- name: postgresql
1010
version: "10.16.2"
11-
repository: https://charts.bitnami.com/bitnami
11+
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
1212
condition: postgresql.enabled
1313
sources:
1414
- https://github.com/alerta/alerta

charts/alerta-web/templates/configmap.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ data:
88
{{- end }}
99
{{ if .Values.postgresql.enabled -}}
1010
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 }}
1115
{{- end }}
1216
{{- if .Values.alertaWebUIConfig }}
1317
config.js: |

charts/alerta-web/values.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,13 @@ postgresql:
8282
persistence:
8383
enabled: true
8484
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

0 commit comments

Comments
 (0)