Skip to content

Rename configparser.Parser as config.Map #4075

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

Merged
merged 2 commits into from
Sep 23, 2021

Conversation

bogdandrutu
Copy link
Member

Signed-off-by: Bogdan Drutu [email protected]

@bogdandrutu bogdandrutu requested review from a team and codeboten September 20, 2021 09:31
Copy link
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

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

configmap.ConfigMap stutters, but I don't have a better alternative to offer.

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

configmap.ConfigMap stutters, but I don't have a better alternative to offer.

I agree with this, the only way I could imagine this not sounding repetitive is by moving out of the config package altogether. Moving it to config makes it slightly better to use config.ConfigMap but I don't know if it's worth the effort.

@bogdandrutu bogdandrutu force-pushed the renameconfigmap branch 3 times, most recently from 6ab7780 to 4a66a6d Compare September 22, 2021 12:00
@bogdandrutu
Copy link
Member Author

@codeboten @dashpole tried to make this config.Map, this avoids all the duplications.

@bogdandrutu bogdandrutu changed the title Rename configparser package to configmap Rename configparser.Parser as config.Map Sep 22, 2021
Copy link
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

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

Nice. This is actually much easier to read, and not just because I don't confuse it with k8s configmaps anymore.

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

I agree w/ @dashpole, this is great! Just a couple of nits in the comments

@bogdandrutu bogdandrutu force-pushed the renameconfigmap branch 2 times, most recently from 4559625 to 2a60df9 Compare September 23, 2021 08:27
@bogdandrutu bogdandrutu merged commit e0e5774 into open-telemetry:main Sep 23, 2021
@bogdandrutu bogdandrutu deleted the renameconfigmap branch September 23, 2021 08:38
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