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

config: cleanup, add env var support #135

Merged
merged 7 commits into from
Dec 11, 2024
Merged

Conversation

anitgandhi
Copy link
Collaborator

@anitgandhi anitgandhi commented Oct 11, 2024

Notes

Please review each commit separately to make it easier. There are details in some of the extended commit messages.

This some cleanup in preparation of future work that I'd like to have behind a configuration variable to gate the behavior.

@anitgandhi anitgandhi marked this pull request as draft October 11, 2024 17:22
@anitgandhi anitgandhi force-pushed the agandhi/config-updates branch 2 times, most recently from 67aa70d to b222ecc Compare October 11, 2024 17:27
@anitgandhi anitgandhi marked this pull request as ready for review October 11, 2024 17:27
CLI flags are still respected.

Env vars will be prefixed with DROPLET_AGENT_ ; for example, DROPLET_AGENT_DEBUG maps to the --debug CLI flag.

This makes it easier to drive config with systemd drop-in files with the `Environment=` directive, for example.
@anitgandhi anitgandhi force-pushed the agandhi/config-updates branch from b222ecc to e2b3694 Compare October 11, 2024 17:51
@anitgandhi anitgandhi requested a review from house-lee October 11, 2024 21:34
Copy link
Collaborator

@house-lee house-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anitgandhi anitgandhi merged commit a4a7514 into main Dec 11, 2024
3 checks passed
@anitgandhi anitgandhi deleted the agandhi/config-updates branch December 11, 2024 20:59
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