We're Hiring!

Mattermost, Inc.

Enterprise Edition Helm Deployment License File Created in Wrong Directory

Deploying Enterprise Edition using the standard Enterprise Edition Helm Chart.

Modified values.yaml to include the valid values in key - mattermostLicense
Excerpt—
global:
mattermostLicense: “A Valid License Key”

When the chart deploys, logs indicate
“We could not find the license key in the database or on disk at”,“filename”:"/mattermost/config/mattermost.mattermost-license"}

Logging into the pod and checking finds no license file in /mattermost/config/ but the license file is created in /mattermost with the correct data in the file

ls -al /mattermost/config
total 20
drwxr-xr-x 2 mattermo mattermo 42 Nov 11 18:58 .
drwxr-sr-x 1 mattermo mattermo 77 Nov 11 19:00 …
-rw-r–r-- 1 mattermo mattermo 243 Oct 19 15:24 README.md
-rw-r–r-- 1 mattermo mattermo 16137 Oct 19 15:24 config.json

ls -al /mattermost
total 228
drwxr-sr-x 1 mattermo mattermo 77 Nov 11 19:00 .
drwxr-xr-x 1 root root 46 Nov 11 18:58 …
-rw------- 1 mattermo mattermo 137 Nov 11 19:11 .ash_history
-rw-r–r-- 1 mattermo mattermo 2052 Oct 19 15:24 ENTERPRISE-EDITION-LICENSE.txt
-rw-r–r-- 1 mattermo mattermo 202005 Oct 19 15:24 NOTICE.txt
-rw-r–r-- 1 mattermo mattermo 5554 Oct 19 15:24 README.md
drwxr-xr-x 2 mattermo mattermo 53 Oct 19 15:49 bin
drwxr-xr-x 1 mattermo mattermo 196 Oct 19 15:49 client
drwxr-xr-x 2 mattermo mattermo 42 Nov 11 18:58 config
drwxr-xr-x 2 mattermo mattermo 6 Oct 19 15:49 data
drwxr-xr-x 2 mattermo mattermo 44 Oct 19 15:49 fonts
drwxr-xr-x 2 mattermo mattermo 255 Oct 19 15:49 i18n
drwxr-xr-x 2 mattermo mattermo 28 Nov 11 18:58 logs
-rw-r–r-- 1 root root 1460 Nov 11 18:58 mattermost.mattermost-license
drwxrwxrwx 3 root root 32 Nov 11 18:58 plugins
drwxr-xr-x 2 mattermo mattermo 4096 Oct 19 15:49 prepackaged_plugins
drwxr-xr-x 2 mattermo mattermo 4096 Oct 19 15:49 templates

Suggest that either the default location for the license file be changed (it is set to /mattermost/config and can be changed with a config.json entry but not through values.yaml) or create the file in the proper location with the helm deployment or allow the config.json key LicenseFileLocation be set from within the values.yaml.