Mattermost tightly coupled to Logging, Minio & SSO
As part of !922 (merged) , my team is currently deploying applications into a cluster that doesn't necessarily have the full Elasticsearch package deployed but is shipping logs somewhere else. Additionally, getting SSO stood up requires time but team members still want to stand up Big Bang packages/addons into sandbox environments to test and prep installations for production. One application that we're testing is Mattermost.
We're noticing that Mattermost is not able to stand up correctly if:
- SSO is not enabled
- minio is not enabled
- Elasticsearch is not enabled
{{- if or .Values.mattermostEnvs .Values.sso.enabled .Values.minio.install .Values.elasticsearch.enabled }}
What happens is that the condition in the env-secret
Mattermost template does not get fulfilled which then prevents the secret from being created which has the important environment variable, MM_SERVICESETTINGS_SITEURL
. When this does not get set properly, the Mattermost UI causes the error unable to construct url. 'https' is not a valid url
. Without the variable, the SITEURL
value just becomes https://
.
A workaround would be to create a dummy environment variable, WORK="true"
, which satisfies the .Values.mattermostEnvs
condition and then creates the env-secret
.
It's our opinion that env-secret
should be created even if those conditions are all false because the siteurl environment variable is required for the Mattermost UI to work properly.