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

Expose DomainRegexp from reference #2185

Merged
merged 1 commit into from
Feb 13, 2017
Merged

Expose DomainRegexp from reference #2185

merged 1 commit into from
Feb 13, 2017

Conversation

yongtang
Copy link
Contributor

@yongtang yongtang commented Feb 8, 2017

This fix is based on:
moby/moby#30746 (comment)

The goal is to reuse the DomainRegexp in docker to check for <host>:<port> pattern.

/cc @dmcgowan @aaronlehmann not sure this is the best way to handle it so feel free to close the PR or provide any suggestions.

Signed-off-by: Yong Tang [email protected]

This fix is based on:
moby/moby#30746 (comment)

The goal is to reuse the `DomainRegexp` in docker to check
for `<host>:<port>` pattern.

Signed-off-by: Yong Tang <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #2185 into master will not impact coverage by -6.63%.

@@            Coverage Diff             @@
##           master    #2185      +/-   ##
==========================================
- Coverage   57.86%   51.24%   -6.63%     
==========================================
  Files         125      125              
  Lines       11446    11446              
==========================================
- Hits         6623     5865     -758     
- Misses       3988     4835     +847     
+ Partials      835      746      -89
Impacted Files Coverage Δ
reference/regexp.go 90% <ø> (ø)
registry/storage/driver/gcs/gcs.go 0.4% <ø> (-68.94%)
registry/storage/driver/oss/oss.go 0.56% <ø> (-57.23%)
registry/storage/driver/s3-goamz/s3.go 0.5% <ø> (-18.79%)
registry/storage/driver/s3-aws/s3.go 4.58% <ø> (-18.49%)
registry/storage/driver/storagedriver.go 33.33% <ø> (-11.12%)
registry/client/transport/transport.go 69.69% <ø> (-9.1%)
notifications/sinks.go 94.03% <ø> (-0.67%)

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 b1993c9...95daa79. Read the comment docs.

@dmcgowan
Copy link
Collaborator

LGTM

1 similar comment
@aaronlehmann
Copy link
Contributor

LGTM

@aaronlehmann aaronlehmann merged commit b38e583 into distribution:master Feb 13, 2017
@yongtang yongtang deleted the 29936-validate-insecure-registry branch February 13, 2017 20:18
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