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

allow loading decoupled config from url #88

Merged
merged 4 commits into from
Jan 24, 2024
Merged

allow loading decoupled config from url #88

merged 4 commits into from
Jan 24, 2024

Conversation

piax93
Copy link
Collaborator

@piax93 piax93 commented Jan 24, 2024

This turned out a bit convoluted, mostly due to wanting to keep the existing configuration watcher setup as is.

In simple terms, the custom YAML loader we already employed for combining multiple files together, now can also lunch a background thread which periodically checks a URL for updated configuration values. It shuffles around data in poorly managed temporary files to achieve that, but I'm not too worried about leaving behind garbage, as this is mostly aimed for when running in containers.

I tested a modified version of our currently deployed config with an S3 url directly plugged into it, and all seems to be fine.

@piax93 piax93 merged commit ff7745a into master Jan 24, 2024
3 checks passed
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.

2 participants