-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close: #1407 Add the `digest-only` field to each mirror table, so it will be configured for each mirror instead of for primary registry. For the same primary registry, it can support both digest only pull and tag allowed pull. The `mirror-by-digest-only` for primary is still allowed configuring, and it is honored for compatibility Signed-off-by: Qi Wang <qiwan@redhat.com>
- Loading branch information
Showing
4 changed files
with
147 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
pkg/sysregistriesv2/testdata/pull-sources-mirror-reference.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[[registry]] | ||
prefix = "registry-a.com/foo" | ||
location = "registry-a.com/bar" | ||
|
||
[[registry.mirror]] | ||
location = "mirror-1.registry-a.com" | ||
|
||
[[registry.mirror]] | ||
location = "mirror-2.registry-a.com" | ||
insecure = true | ||
|
||
[[registry]] | ||
prefix = "registry-b.com/foo" | ||
location = "registry-b.com/bar" | ||
|
||
[[registry.mirror]] | ||
digest-only = true | ||
location = "mirror-1.registry-b.com" | ||
|
||
[[registry.mirror]] | ||
digest-only = true | ||
location = "mirror-2.registry-b.com" | ||
|
||
[[registry]] | ||
prefix = "registry-c.com/foo" | ||
location = "registry-c.com/bar" | ||
|
||
[[registry.mirror]] | ||
location = "mirror-1.registry-c.com" | ||
|
||
[[registry.mirror]] | ||
digest-only = true | ||
location = "mirror-2.registry-c.com" | ||
|
||
[[registry]] | ||
prefix = "registry-d.com/foo" | ||
location = "registry-d.com/bar" | ||
mirror-by-digest-only = true | ||
|
||
[[registry.mirror]] | ||
location = "mirror-1.registry-d.com" | ||
|
||
[[registry.mirror]] | ||
location = "mirror-2.registry-d.com" |