Skip to content

Commit

Permalink
fetch: add support for registry.access.redhat.com
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Jul 18, 2022
1 parent 846553c commit a91e041
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/fetch/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ const (
)

var registry = map[string]*client{
"docker.io": &client{Root: "https://registry-1.docker.io/"},
"quay.io": &client{Root: "https://quay.io/"},
"gcr.io": &client{Root: "https://gcr.io/"},
"docker.io": {Root: "https://registry-1.docker.io/"},
"quay.io": {Root: "https://quay.io/"},
"gcr.io": {Root: "https://gcr.io/"},
"registry.access.redhat.com": {Root: "https://registry.access.redhat.com/"},
}

func Layer(ctx context.Context, t *testing.T, c *http.Client, from, repo string, blob claircore.Digest, opt ...Option) (*os.File, error) {
Expand Down

0 comments on commit a91e041

Please sign in to comment.