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

Refactor configauth, getters use the map instead of iteration #4234

Merged
merged 1 commit into from Oct 20, 2021

Conversation

bogdandrutu
Copy link
Member

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

@bogdandrutu bogdandrutu requested a review from a team as a code owner October 20, 2021 21:17
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@codecov
Copy link

codecov bot commented Oct 20, 2021

Codecov Report

Merging #4234 (90f5c8a) into main (964c857) will decrease coverage by 0.01%.
The diff coverage is 82.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4234      +/-   ##
==========================================
- Coverage   87.93%   87.92%   -0.02%     
==========================================
  Files         174      173       -1     
  Lines       10265    10263       -2     
==========================================
- Hits         9027     9024       -3     
- Misses        992      993       +1     
  Partials      246      246              
Impacted Files Coverage Δ
config/configauth/configauth.go 81.81% <79.31%> (-18.19%) ⬇️
config/configgrpc/configgrpc.go 93.91% <100.00%> (+1.61%) ⬆️
config/confighttp/confighttp.go 100.00% <100.00%> (ø)
config/configauth/clientauth.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 964c857...90f5c8a. Read the comment docs.

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.

Change looks good, just a non-blocking question for more context.

for id, ext := range extensions {
// GetServerAuthenticator attempts to select the appropriate ServerAuthenticator from the list of extensions,
// based on the requested extension name. If an authenticator is not found, an error is returned.
func (a Authentication) GetServerAuthenticator(extensions map[config.ComponentID]component.Extension) (ServerAuthenticator, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this eventually be split into a GetHTTPServerAuthenticator and a GetGRPCServerAuthentiator?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think so, I had exactly the same question in my mind while doing the refactoring. @jpkrohling for you to see this comment.

Copy link
Member

Choose a reason for hiding this comment

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

I just created a new issue, to keep track of it.

@bogdandrutu bogdandrutu merged commit b927925 into open-telemetry:main Oct 20, 2021
@bogdandrutu bogdandrutu deleted the refactorconfigauth branch October 20, 2021 23:51
@jpkrohling jpkrohling self-assigned this Oct 25, 2021
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