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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tommyk
Copy link

@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
…ast touched.

Signed-off-by: Jim Weber <jpweber@gmail.com>
@jpweber
Copy link

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

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

Signed-off-by: Jim Weber <jpweber@gmail.com>
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

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
Author

tommyk commented Feb 27, 2024

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

3 participants