Skip to content

Conversation

@enocom
Copy link
Member

@enocom enocom commented Oct 26, 2022

Fixes #225.

@enocom enocom requested a review from a team October 26, 2022 19:31
@enocom
Copy link
Member Author

enocom commented Oct 26, 2022

I apologize for the size of this PR -- the bulk of the diff is from all the new tests. The new tests ensure that each flag may be set with a corresponding environment variable. In spite of the line count, the actual change here is quite small.

Copy link
Collaborator

@hessjcg hessjcg left a comment

Choose a reason for hiding this comment

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

LGTM.

See comments on one optional change that could make the test cases easier to read.

}

// pointer returns a pointer to v
func pointer[T any](v T) *T {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Clever!

@kurtisvg kurtisvg self-requested a review October 31, 2022 16:26
@enocom enocom requested a review from kurtisvg October 31, 2022 20:39
@enocom enocom merged commit 2a9d9a2 into main Nov 7, 2022
@enocom enocom deleted the config-from-env branch November 7, 2022 22:46
enocom added a commit to GoogleCloudPlatform/alloydb-auth-proxy that referenced this pull request Dec 8, 2022
enocom added a commit to GoogleCloudPlatform/alloydb-auth-proxy that referenced this pull request Dec 8, 2022
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.

Support configuring proxy with environment variables

3 participants