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

Get default config values from environment #998

Merged
merged 1 commit into from Jan 7, 2024

Conversation

Askaholic
Copy link
Collaborator

@Brutus5000 requested this feature to make managing secrets easier in kubernetes. This way values like the database password which are never going to change dynamically anyway can be stored in a Secret object and mapped to the environment while non-sensitive data can be stored in a ConfigMap and mapped to a volume that will be able to trigger the dynamic changes. Since kubernetes doesn't really support merging those two things into a single file, this feature will make setting up the configuration a lot easier and more idiomatic.

NOTE: This will only work for values which are expected to be strings! This should not be a problem since this feature is only intended to be used for passwords.

@Brutus5000
Copy link
Member

Is refresh guaranteed to be called on startup?

@Askaholic
Copy link
Collaborator Author

Yep, it’s called in the constructor

@Askaholic Askaholic merged commit 5d27a0a into FAForever:develop Jan 7, 2024
8 checks passed
@Askaholic Askaholic deleted the config-defaults-from-env branch January 7, 2024 20:37
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

Successfully merging this pull request may close these issues.

None yet

2 participants