-
Notifications
You must be signed in to change notification settings - Fork 427
Bug 1800674: Option to force RepoDigest mirror #298
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
Bug 1800674: Option to force RepoDigest mirror #298
Conversation
|
@kevinrizza: This pull request references Bugzilla bug 1800674, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
soltysh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lgtm, but you need to run make update to get the completions updated.
/approve
Also I'd love to have a confirmation from @smarterclayton
|
/bugzilla refresh |
|
@ecordell: This pull request references Bugzilla bug 1800674, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Kevin's out today, so I went ahead and regenerated the shell completions in #301. If this change doesn't need to merge today, I'll close my PR. |
pkg/cli/image/mirror/mirror.go
Outdated
| flag.BoolVar(&o.SkipMount, "skip-mount", o.SkipMount, "Always push layers instead of cross-mounting them") | ||
| flag.BoolVar(&o.SkipMultipleScopes, "skip-multiple-scopes", o.SkipMultipleScopes, "Some registries do not support multiple scopes passed to the registry login.") | ||
| flag.BoolVar(&o.Force, "force", o.Force, "Attempt to write all layers and manifests even if they exist in the remote repository.") | ||
| flag.BoolVar(&o.ForceManifestList, "force-manifest-list", o.ForceManifestList, "Always attempt to mirror manifestlist even if manifestlist contains a single image digest") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit concerned here that the default behavior of image mirror is wrong when users specify --filter-by-os=*, regardless of this flag. Mirror doesn't have any issue dealing with manifest lists, so I think ProcessManifestList within mirror should always have the equivalent of force=true. That being said, mirror for release payloads should resolve image streams, so it can't be the default.
That may be a behavior change, but at least on the surface this looks like a bug that mirror by default strips manifest lists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smarterclayton so you're basically saying the fix is correct, but we should not expose that outside for users, @kevinrizza would you mind updating?
a7b5dd8 to
83bdfda
Compare
Currently `oc image mirror`, when pointed at a manifest list digest, checks the contents of the manifest and mirrors just the underlying image if it contains only a single image. This change adds an option to mirroring to force the repodigest to mirror in addition to the underlying image digest. Additionally, it forces `oc image mirror` and `oc adm catalog mirror` to always enable this option https://bugzilla.redhat.com/show_bug.cgi?id=1800674
83bdfda to
9b68b41
Compare
|
@kevinrizza: This pull request references Bugzilla bug 1800674, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@smarterclayton @soltysh Updated the PR to remove the command line flag from |
|
/bugzilla refresh |
|
@kevinrizza: This pull request references Bugzilla bug 1800674, which is valid. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
soltysh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/retest
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kevinrizza, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
6 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/cherry-pick release-4.4 |
|
@soltysh: new pull request created: #304 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/cherry-pick release-4.3 |
|
@kevinrizza: #298 failed to apply on top of branch "release-4.3": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Currently
oc image mirror, when pointed at amanifest list digest, checks the contents of the manifest and mirrors
just the underlying image if it contains only a single image.
This change adds an option to mirroring to force the repodigest to
mirror in addition to the underlying image digest. Additionally, it
forces
oc image mirrorandoc adm catalog mirrorto alwaysenable this option
https://bugzilla.redhat.com/show_bug.cgi?id=1800674