registry: refactor registry.IsSecure calls into registry.NewEndpoint#9104
registry: refactor registry.IsSecure calls into registry.NewEndpoint#9104vbatts merged 3 commits intomoby:masterfrom
Conversation
registry/endpoint.go
Outdated
There was a problem hiding this comment.
can't see be an argument of newEndpoint?
There was a problem hiding this comment.
it would mean passing that insecureRegistries down once more. Plus I made secure = true by default.
6b2e0e5 to
bad12ef
Compare
|
registry_test.go still needs updates to the new NewEndpoint interface ./registry_test.go:24: cannot use false (type bool) as type []string in argument to NewEndpoint |
|
Didn't I open a PR for tests on endpoint? Or do you mean additional tests?
|
|
LGTM |
|
@tiborvass this is a pure refactor right? no functional changes? |
|
Mainly potential bugfix: https://github.com/docker/docker/blob/master/registry/service.go#L43 Additionally, I realized that the only places where we use |
|
Something I feel is missing, is a test reflecting the potential issue this fixes. |
|
functionality and stylistically LGTM and I expect tests to be forthcoming in another PR? |
0d3d95f to
78e859f
Compare
|
Rebased |
Signed-off-by: Tibor Vass <teabee89@gmail.com>
Signed-off-by: Tibor Vass <teabee89@gmail.com>
registry/endpoint.go
Outdated
There was a problem hiding this comment.
actually, this won't be good. hostname now is URL.Host, not the https://index.docker.io/v1/ returned by IndexServerAddress()
def5b85 to
511d981
Compare
cee72d2 to
fbe10c8
Compare
…ecure Signed-off-by: Tibor Vass <teabee89@gmail.com>
|
Not sure if the drone error is related... |
|
LGTM |
1 similar comment
|
LGTM |
registry: refactor registry.IsSecure calls into registry.NewEndpoint
Signed-off-by: Tibor Vass teabee89@gmail.com
Ping @dmcgowan @proppy @vbatts