Giter Site home page Giter Site logo

Comments (8)

mjnagel avatar mjnagel commented on July 1, 2024 2

@Szymongib / @gabrieljackson If you want to assign me to this, I've got a PR that hopefully resolves - #305 - happy to make any modifications needed to get it ready.

from mattermost-operator.

Szymongib avatar Szymongib commented on July 1, 2024

In theory, it would be possible to configure local file store with environment variables. This is not possible with CRD tho, as containers file system is transient therefore unless you mount a persistent volume you would lose all your data whenever containers restart.

from mattermost-operator.

felix-dpg avatar felix-dpg commented on July 1, 2024

Yes, I will mount a persistent volume, so, please, where in the docs talk about local file store with env variable?

from mattermost-operator.

Szymongib avatar Szymongib commented on July 1, 2024

There are no docs for that as we do not officially support it. I would advise against it in any production scenario as this is not really tested and it is more of a hack, but you could achieve it by setting the following environment variables:

  mattermostEnv:
  - name: MM_FILESETTINGS_DRIVERNAME
    value: local
  - name: MM_FILESETTINGS_DIRECTORY
    value: /mattermost/data    # Or whatever is path of your volume mount
  ...

You would still need to specify the filestore section tho, so probably configuring some not existent bucket or something.

Could you share what is your use case for using local filestore? Maybe there is some other solution for it? 🤔

from mattermost-operator.

felix-dpg avatar felix-dpg commented on July 1, 2024

Thanks. The use case is that Im on baremetal, and even if I deploy minio I will end with an NFS filesystem. I will try the env "hack".
But why the operator was not designed to support local file store?

from mattermost-operator.

Szymongib avatar Szymongib commented on July 1, 2024

We only recently added support for volumes and using external file store is more aligned with cloud application. Also as you mentioned there is always option for deploying Minio so I suppose there was never real need for it.

from mattermost-operator.

Szymongib avatar Szymongib commented on July 1, 2024

We will be most likely moving out from support for Minio and MySQl Operators tho, so maybe it is something we can revisit.

from mattermost-operator.

gabrieljackson avatar gabrieljackson commented on July 1, 2024

Due to a few recent requests for this functionality in other communication channels we are opening this up as a help wanted request.

The task would be to provide a clean configuration option for a local filestore type which would be clearly marked as not supported for production environments.

from mattermost-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.