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

Flag to specify configuration directory #932

Open
mccormickt opened this issue Oct 29, 2024 · 0 comments
Open

Flag to specify configuration directory #932

mccormickt opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@mccormickt
Copy link
Contributor

mccormickt commented Oct 29, 2024

Feature Request

Is your feature request related to a problem? Please describe.

The default configuration dir of config (relative to the application binary) is not configurable. In the case the config dir is mounted at a separate directory or filesystem (e.g. secret volumes, configmaps, etc.) you would have to mount the config file next to the binary in all cases which isn't always easy or possible depending on your deployment pattern.

Describe the solution you'd like

An optional command line flag, -c, --config-dir <CONFIG_DIR>, for specifying the configuration directory to read the <environment>.yaml file from. It can use the existing Config::load_from_folder function, falling back to the default if the flag is not provided.

Describe alternatives you've considered

Mounting configs in the /usr/bin/ or other application/binary directories which is cumbersome and could unintentionally overwrite existing files.

@mccormickt mccormickt added the enhancement New feature or request label Oct 29, 2024
@jondot jondot added this to the 0.14.0 milestone Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants