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

Use default client when pinging registry. #188

Closed
wants to merge 1 commit into from

Conversation

marcosnils
Copy link

As this code doesn't check for status code, there's
no need to use custom transports to authenticate.
For what I see it's only checking there is no communication issue

I couldn't run tests due to #187 but for what I see it shouldn't break anything.

Signed-off-by: Marcos Lilljedahl [email protected]

As this code doesn't check for status code, there's
no need to use custom transports to authenticate.
For what I see it's only checking there is no communication issue

Signed-off-by: Marcos Lilljedahl <[email protected]>
@marcosnils marcosnils changed the title Use default client when pining registry. Use default client when pinging registry. Jun 4, 2019
@jessfraz
Copy link
Collaborator

doesnt work because the insecure certs and such, needs to be the client that passes those!

@jessfraz jessfraz closed this Sep 16, 2019
@marcosnils
Copy link
Author

marcosnils commented Sep 16, 2019

@jessfraz 👋. For what I see that function is not testing for any status code, I thought that you only wanted to the test that there's actually communication between the client and the registry. If no status code is checked, what's the point of sending certs if you're still going to get 200 or 401 depending if you're authorized?.

Anyways, I just thought it was a nice and quick performance improvement hack given the fact that again the status code is not checked. 👍

@jessfraz
Copy link
Collaborator

jessfraz commented Sep 16, 2019 via email

@marcosnils
Copy link
Author

Would like to give it a try. I couldn't get tests to run locally #187 😢

@jessfraz
Copy link
Collaborator

jessfraz commented Sep 16, 2019 via email

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.

2 participants