Alerta: Fix secret name and overrides

Change-Id: I0267b93abda3c7eff1d7d85cc220c34ff2b75465
This commit is contained in:
Steven Fitzpatrick 2020-09-09 05:16:06 +00:00
parent 4ec7fdc7e6
commit c336d93530
2 changed files with 5 additions and 3 deletions

View File

@ -18,11 +18,11 @@ limitations under the License.
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: alerta-admin-cert name: {{ printf "%s-%s" $envAll.Release.Name "admin-cert" | quote }}
type: Opaque type: Opaque
data: data:
alerta-admin-user: {{ .Values.conf.alerta.alertaAdminUser | b64enc }} alerta-admin-user: {{ .Values.conf.alerta.alertaAdminUser | b64enc }}
alerta-admin-password: {{ .Values.conf.alerta.alertaAdminPassword | b64enc }} alerta-admin-password: {{ .Values.conf.alerta.alertaAdminPassword | b64enc }}
alerta-admin-key: {{ .Values.conf.alerta.alertaAdminPassword | b64enc }} alerta-admin-key: {{ .Values.conf.alerta.alertaAdminKey | b64enc }}
alerta-api-key: {{ .Values.conf.alerta.alertaAdminPassword | b64enc }} alerta-api-key: {{ .Values.conf.alerta.alertaAPIKey | b64enc }}
{{- end }} {{- end }}

View File

@ -179,6 +179,8 @@ conf:
alerta: alerta:
alertaAdminUser: admin alertaAdminUser: admin
alertaAdminPassword: changeme alertaAdminPassword: changeme
alertaAdminKey: changeme
alertaAPIKey: changeme
alertadb: alerta_db alertadb: alerta_db
alerta_configs: | alerta_configs: |
# ref: http://docs.alerta.io/en/latest/configuration.html # ref: http://docs.alerta.io/en/latest/configuration.html