From c336d935306441ced275c8bb4e17e8fa85119d94 Mon Sep 17 00:00:00 2001 From: Steven Fitzpatrick Date: Wed, 9 Sep 2020 05:16:06 +0000 Subject: [PATCH] Alerta: Fix secret name and overrides Change-Id: I0267b93abda3c7eff1d7d85cc220c34ff2b75465 --- alerta/templates/secret.yaml | 6 +++--- alerta/values.yaml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/alerta/templates/secret.yaml b/alerta/templates/secret.yaml index b22a82eb0..ebe3740ad 100644 --- a/alerta/templates/secret.yaml +++ b/alerta/templates/secret.yaml @@ -18,11 +18,11 @@ limitations under the License. apiVersion: v1 kind: Secret metadata: - name: alerta-admin-cert + name: {{ printf "%s-%s" $envAll.Release.Name "admin-cert" | quote }} type: Opaque data: alerta-admin-user: {{ .Values.conf.alerta.alertaAdminUser | b64enc }} alerta-admin-password: {{ .Values.conf.alerta.alertaAdminPassword | b64enc }} - alerta-admin-key: {{ .Values.conf.alerta.alertaAdminPassword | b64enc }} - alerta-api-key: {{ .Values.conf.alerta.alertaAdminPassword | b64enc }} + alerta-admin-key: {{ .Values.conf.alerta.alertaAdminKey | b64enc }} + alerta-api-key: {{ .Values.conf.alerta.alertaAPIKey | b64enc }} {{- end }} diff --git a/alerta/values.yaml b/alerta/values.yaml index 430c02421..aa579af7b 100644 --- a/alerta/values.yaml +++ b/alerta/values.yaml @@ -179,6 +179,8 @@ conf: alerta: alertaAdminUser: admin alertaAdminPassword: changeme + alertaAdminKey: changeme + alertaAPIKey: changeme alertadb: alerta_db alerta_configs: | # ref: http://docs.alerta.io/en/latest/configuration.html