diff --git a/chart/templates/mattermost/values.yaml b/chart/templates/mattermost/values.yaml index ee7c488af53f68c8b4313028f6a428316624478b..22de01391717f7fef1b9a79a43c4304c3f1deb9c 100644 --- a/chart/templates/mattermost/values.yaml +++ b/chart/templates/mattermost/values.yaml @@ -164,4 +164,12 @@ mattermostEnvs: # required for Keycloak >= 20.X to work with gitlab auth pointed to Keycloak MM_GITLABSETTINGS_SCOPE: openid +existingSecretEnvs: + # Forces mattermost to use the DB_CONNECTION_STRING in the secret and respect changes in that value + - name: MM_SQLSETTINGS_DATASOURCE + valueFrom: + secretKeyRef: + key: DB_CONNECTION_STRING + name: "mattermost-dbcreds" + {{- end -}}