Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to load non-environment enabled configuration settings #439

Open
fluzzykitten opened this issue Jan 30, 2024 · 0 comments
Open

No way to load non-environment enabled configuration settings #439

fluzzykitten opened this issue Jan 30, 2024 · 0 comments

Comments

@fluzzykitten
Copy link

We have a use case where we need to load and redeploy the mattermost-team-edition helm chart in an enclave many times, and need the ability to load configuration settings (config.json) that are not environment enabled settings.

Loading settings that are ENV enabled is easy with the values file here

But when using the database, you need to use the mmctl config migrate command

To do that, you need to enable the local mode socket. But to enable the local mode socket, it cannot be done via an ENV variable, and must be done via config.json "EnableLocalMode": true

TL;DR - A config.json file must be loaded via mmctl config migrate --local. But to use mmctl config migrate --local you must first enable local access via the config.json file. Thus, fail. Sadness. 😭

Our temporary solution is to use an init container with an ancient docker image that still uses mattermost config before it was removed, but having to use ancient docker images with deprecated features that have been removed is not ideal.

In the end, we would like a way to migrate a config.json with variables that have no ENV var options, so we don't need a human pause the installation process, log into the system console, and set a bunch of values that we'd like to be default every time we redeploy a new version of Mattermost Teams into our enclaves.

Also, this line should should be updated to reference this link: https://docs.mattermost.com/configure/configuation-in-a-database.html

KkThnxBai. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant