-
Notifications
You must be signed in to change notification settings - Fork 779
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
support copy multi arch instance #2445
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: cleverhu <[email protected]>
Ephemeral COPR build failed. @containers/packit-build please check. |
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.
Thanks.
Similarly to c/image, all existing options must keep working.
Also compare previous #1987, that probably discusses relevant concerns; I didn’t now go back to re-read that.
// There is no CopyNoImages value in copy.ImageListSelection, but because we | ||
// don't provide an option to select a set of images to copy, we can use | ||
// CopySpecificImages. | ||
case "index-only": |
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.
We must not break existing options.
// case "index-only": | ||
// return copy.CopySpecificImages, nil | ||
// // We don't expose CopySpecificImages other than index-only above, because | ||
// // we currently don't provide an option to choose the images to copy. That | ||
// // could be added in the future. | ||
// default: | ||
// return copy.CopySystemImage, fmt.Errorf("unknown multi-arch option %q. Choose one of the supported options: 'system', 'all', or 'index-only'", multiArch) |
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.
Ultimately, code should be removed, unless it is relevant for future readers. Git preserves the history anyway.
support copy multi arch instance, this PR must work with containers/image#2612