soft-serve icon indicating copy to clipboard operation
soft-serve copied to clipboard

Allow support for custom config file location via env vars

Open fire833 opened this issue 6 months ago • 0 comments

Is your feature request related to a problem? Please describe. I am wanting to run this service on Kubernetes, and I plan on SOFT_SERVE_DATA_DIR being a specific mount, but I would like to store the config in a configmap, and that requires a separate mounting location from the SOFT_SERVE_DATA_DIR mount.

Describe the solution you'd like If a separate default config location is not an option (hard-coded at something like /etc/soft/config.yaml), it would be cool to support a custom config location stored in env var SOFT_SERVE_CONFIG_LOCATION or something like that, and that would override the location in the data dir if set. Otherwise, just default to searching for config in the data dir. The new env var could also point to a location for the config to optionally be placed on startup, and of course revert to the data dir otherwise.

Describe alternatives you've considered

  • Suck it up and store the config in a PV

Thanks!

fire833 avatar Aug 08 '24 04:08 fire833