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

feat: support pack different arch image together #2184

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

kakaZhou719
Copy link
Member

@kakaZhou719 kakaZhou719 commented Apr 13, 2023

Describe what this PR does / why we need it

  1. support pack different arch image together

sealer alpha manifest add amd:v1 arm:v1 -t all-in-one:v1

-t flag : specify the wanted new image name, if null, will create a new one. if not null, it must be an existed manifest name.

args: if it is a single image just add it ,if it is a manifest will add it’s s all instance no matter what platform it is.

  1. support save each manifest instance no-matter what platform it is.

Does this pull request fix one issue?

Fixes #2180

Describe how you did it

Describe how to verify it

Special notes for reviews

@github-actions github-actions bot added ImageBuilding related to all staff with image building test labels Apr 13, 2023
@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2023

Codecov Report

Patch coverage has no change and project coverage change: -7.10 ⚠️

Comparison is base (3b56cc0) 20.19% compared to head (147825b) 13.09%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2184      +/-   ##
==========================================
- Coverage   20.19%   13.09%   -7.10%     
==========================================
  Files          98      263     +165     
  Lines        9100    22634   +13534     
==========================================
+ Hits         1838     2965    +1127     
- Misses       7008    19264   +12256     
- Partials      254      405     +151     
Flag Coverage Δ
e2e-tests 8.37% <ø> (?)
unit-tests 20.01% <0.00%> (-0.19%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/imageengine/buildah/load.go 0.00% <0.00%> (ø)
pkg/imageengine/buildah/manifest.go 0.00% <0.00%> (ø)
pkg/imageengine/buildah/save.go 0.00% <0.00%> (ø)

... and 165 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

//getImageId get imageID by name Or id,what ever it is an image or a manifest
// if it is image just return imageID
// if it is a manifest, return its included instance IDs.
func (engine *Engine) getImageID(imageNameOrID string) ([]string, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/getImageID/getImageIDList

@@ -140,6 +131,7 @@ func manifestAddCommand() *cobra.Command {
flags.StringSliceVar(&addManifestOpts.OsFeatures, "os-features", nil, "override the OS `features` of the specified image")
flags.StringSliceVar(&addManifestOpts.Annotations, "annotation", nil, "set an `annotation` for the specified image")
flags.BoolVar(&addManifestOpts.All, "all", false, "add all of the list's images if the image is a list")
flags.StringVarP(&addManifestOpts.TargetImageName, "target-image", "t", "", "target image name,if it is not exist,will create a new one")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about using target here?

@kakaZhou719 kakaZhou719 force-pushed the feat-support-merge-image branch from 615bb15 to b1a8b07 Compare April 21, 2023 09:07
feat: support pack different arch image together
@kakaZhou719 kakaZhou719 force-pushed the feat-support-merge-image branch from b1a8b07 to 147825b Compare April 27, 2023 08:24
Copy link
Collaborator

@starnop starnop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ImageBuilding related to all staff with image building test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: support to add multi-arch image to manifest
4 participants