-
Notifications
You must be signed in to change notification settings - Fork 362
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
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
📣 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
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
pkg/imageengine/buildah/manifest.go
Outdated
//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) { |
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.
s/getImageID/getImageIDList
cmd/sealer/cmd/alpha/manifest.go
Outdated
@@ -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") |
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.
how about using target here?
615bb15
to
b1a8b07
Compare
feat: support pack different arch image together
b1a8b07
to
147825b
Compare
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
Describe what this PR does / why we need it
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.Does this pull request fix one issue?
Fixes #2180
Describe how you did it
Describe how to verify it
Special notes for reviews