diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-22 15:18:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 15:18:41 +0200 |
commit | 828fae12971c5a7b9807c8c4f8e029fe5d0ddc2f (patch) | |
tree | 76828348bec0fe4c58d8129cd635370ea0501e7a /pkg | |
parent | a49aa135af3b9af368cee861d2ef2884f54893f6 (diff) | |
parent | 33c31112fb44da455b8841b73a92980a07f42720 (diff) | |
download | podman-828fae12971c5a7b9807c8c4f8e029fe5d0ddc2f.tar.gz podman-828fae12971c5a7b9807c8c4f8e029fe5d0ddc2f.tar.bz2 podman-828fae12971c5a7b9807c8c4f8e029fe5d0ddc2f.zip |
Merge pull request #15870 from idleroamer/podman-save
podman-save: Add signature-policy flag
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/entities/images.go | 3 | ||||
-rw-r--r-- | pkg/domain/infra/abi/images.go | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go index cad11b0ab..b1eb3b005 100644 --- a/pkg/domain/entities/images.go +++ b/pkg/domain/entities/images.go @@ -335,7 +335,8 @@ type ImageSaveOptions struct { // Output - write image to the specified path. Output string // Quiet - suppress output when copying images - Quiet bool + Quiet bool + SignaturePolicy string } // ImageScpOptions provide options for securely copying images to and from a remote host diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go index 9ea09e1ec..16b75829f 100644 --- a/pkg/domain/infra/abi/images.go +++ b/pkg/domain/infra/abi/images.go @@ -405,6 +405,7 @@ func (ir *ImageEngine) Save(ctx context.Context, nameOrID string, tags []string, saveOptions := &libimage.SaveOptions{} saveOptions.DirForceCompress = options.Compress saveOptions.OciAcceptUncompressedLayers = options.OciAcceptUncompressedLayers + saveOptions.SignaturePolicyPath = options.SignaturePolicy // Force signature removal to preserve backwards compat. // See https://github.com/containers/podman/pull/11669#issuecomment-925250264 |