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

Environment variable configuration #12

Merged

Conversation

tommyk
Copy link
Contributor

@tommyk tommyk commented Oct 15, 2021

overview

we wanted to be able to use environment variables to drive some of the configuration instead of just args. let me know if this works for you, or if we need to add more to this PR to get it merged.

thanks!

README.md Outdated Show resolved Hide resolved
@jpweber jpweber force-pushed the environment-variable-configuration branch 2 times, most recently from 41a13fa to 027a87c Compare February 27, 2024 21:54
@jpweber
Copy link
Contributor

jpweber commented Feb 27, 2024

Reviving a Zombie. I have pushed updates to this PR to bring it inline with the current state of the project.

main.go Outdated
@@ -70,28 +70,47 @@ type oidcConfig struct {
password string
}

func LookupEnvOrString(key string, defaultVal string) string {
Copy link
Member

Choose a reason for hiding this comment

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

Can we please make all of these lowercase, ie non-exported functions? That's the standard for Go and for the Observatorium project if they are only used internally

Copy link
Contributor

Choose a reason for hiding this comment

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

Changes have been made and pushed.

Copy link
Member

@squat squat left a comment

Choose a reason for hiding this comment

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

I have just one request otherwise this I'm happy to merge this PR

Copy link
Member

@squat squat left a comment

Choose a reason for hiding this comment

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

I'm happy with the state of this for now. Tha KS for taking this over the finish line @jpweber

@jpweber
Copy link
Contributor

jpweber commented Feb 27, 2024

I'm happy with the state of this for now. Tha KS for taking this over the finish line @jpweber

Very welcome. Thanks for reviewing.

@tommyk
Copy link
Contributor Author

tommyk commented Feb 27, 2024

@astro-walker
Copy link

Bump this PR @jpweber @squat can we get this merged?

@squat squat merged commit 08b888a into observatorium:master Dec 11, 2024
4 checks passed
@squat
Copy link
Member

squat commented Dec 11, 2024

wooo! @astro-walker done :))

@astro-walker
Copy link

Amazing thanks for the fast response 🙏

@tommyk
Copy link
Contributor Author

tommyk commented Dec 11, 2024

3+ years, feels good.

@squat
Copy link
Member

squat commented Dec 11, 2024

ToT we try to keep this project moving at the speed of enterprise

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.

4 participants