Skip to content

Commit

Permalink
Merge pull request #1590 from flouthoc/implement-ensure-compression-e…
Browse files Browse the repository at this point in the history
…xsts

libimage/ManifestPushOptions: add `AddCompression` for `Manifest.PushOptions`
  • Loading branch information
openshift-merge-robot authored Aug 1, 2023
2 parents a8ca700 + 86ee021 commit 44bfd82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libimage/manifest_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ type ManifestListPushOptions struct {
ImageListSelection imageCopy.ImageListSelection
// Use when selecting only specific imags.
Instances []digest.Digest
// Add existing instances with requested compression algorithms to manifest list
AddCompression []string
}

// Push pushes a manifest to the specified destination.
Expand Down Expand Up @@ -446,6 +448,7 @@ func (m *ManifestList) Push(ctx context.Context, destination string, options *Ma
defer copier.close()

pushOptions := manifests.PushOptions{
AddCompression: options.AddCompression,
Store: m.image.runtime.store,
SystemContext: copier.systemContext,
ImageListSelection: options.ImageListSelection,
Expand Down

0 comments on commit 44bfd82

Please sign in to comment.