Skip to content

Support specifying host in resolver.#2450

Merged
dmcgowan merged 1 commit intocontainerd:masterfrom
Random-Liu:support-host-in-resolver
Jul 11, 2018
Merged

Support specifying host in resolver.#2450
dmcgowan merged 1 commit intocontainerd:masterfrom
Random-Liu:support-host-in-resolver

Conversation

@Random-Liu
Copy link
Copy Markdown
Member

This is very useful to implement high level policies like registry mirror. See containerd/cri#838

Signed-off-by: Lantao Liu [email protected]

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 9, 2018

Codecov Report

Merging #2450 into master will increase coverage by 0.02%.
The diff coverage is 73.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2450      +/-   ##
==========================================
+ Coverage   45.01%   45.04%   +0.02%     
==========================================
  Files          92       92              
  Lines        9414     9424      +10     
==========================================
+ Hits         4238     4245       +7     
- Misses       4493     4496       +3     
  Partials      683      683
Flag Coverage Δ
#linux 49.29% <75%> (+0.04%) ⬆️
#windows 41.33% <73.68%> (+0.03%) ⬆️
Impacted Files Coverage Δ
remotes/docker/resolver.go 61.33% <73.68%> (+0.21%) ⬆️

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 01d309e...c8a8a49. Read the comment docs.

Comment thread remotes/docker/resolver.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we provide this as a function? A resolver is intended to handle multiple namespaces/hosts

We could have the docker.io handling as a default function here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Will do.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

How about this?

@Random-Liu Random-Liu force-pushed the support-host-in-resolver branch from 908e349 to 684dc87 Compare July 10, 2018 01:19
@Random-Liu Random-Liu force-pushed the support-host-in-resolver branch from 684dc87 to c8a8a49 Compare July 10, 2018 01:26
Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@dmcgowan
Copy link
Copy Markdown
Member

LGTM

@dmcgowan dmcgowan merged commit b382b6f into containerd:master Jul 11, 2018
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.

6 participants