spiegel_podman/vendor/github.com
Valentin Rothberg 5fc622f945 create: support images with invalid platform
Much to my regret, there is a number of images in the wild with invalid
platforms breaking the platform checks in libimage that want to make
sure that a local image is matching the expected platform.

Imagine a `podman run --arch=arm64 fedora` with a local amd64 fedora
image.  We really shouldn't use the local one in this case and pull down
the arm64 one.

The strict platform checks in libimage in combination with invalid
platforms in images surfaced in Podman being able to pull an image but
failing to look it up in subsequent presence checks.  A `podman run`
would hence pull such an image but fail to create the container.

Support images with invalid platforms by vendoring the latest HEAD from
containers/common.  Also remove the partially implemented pull-policy
logic from Podman and let libimage handle that entirely.  However,
whenever --arch, --os or --platform are specified, the pull policy will
be forced to "newer".  This way, we pessimistically assume that the
local image has an invalid platform and we reach out to the registry.
If there's a newer image (i.e., one with a different digest), we'll pull
it down.

Please note that most of the logic has either already been implemented
in libimage or been moved down which allows for removing some clutter
from Podman.

[NO TESTS NEEDED] since c/common has new tests.  Podman can rely on the
existing tests.

Fixes: #10648
Fixes: #10682
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-06-23 15:42:13 +02:00
..
acarl005/stripansi vendor github.com/containers/image/v5@v5.2.0 2020-02-05 09:55:50 +01:00
Azure/go-ansiterm vendor: update everything 2019-01-11 13:38:11 +01:00
beorn7/perks update dependencies 2019-06-24 21:29:31 +02:00
bits-and-blooms/bitset Bump github.com/opencontainers/selinux from 1.8.1 to 1.8.2 2021-06-03 09:34:20 +00:00
blang/semver V2 API Version Support 2020-05-20 10:21:30 -07:00
buger/goterm vendor: update everything 2019-01-11 13:38:11 +01:00
BurntSushi/toml migrate to go-modules 2019-06-24 13:20:59 +02:00
cespare/xxhash/v2 Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
checkpoint-restore Vendor in checkpointctl 2021-03-02 17:00:06 +00:00
chzyer/readline short-name aliasing 2020-11-13 15:40:06 +01:00
container-orchestrated-devices/container-device-interface Add support for CDI device configuration 2021-04-20 09:18:52 -04:00
containerd update c/common 2021-05-20 10:21:27 +02:00
containernetworking Bump github.com/containernetworking/cni from 0.8.0 to 0.8.1 2021-02-03 09:08:19 -05:00
containers create: support images with invalid platform 2021-06-23 15:42:13 +02:00
coreos Bump github.com/coreos/go-systemd/v22 from 22.3.1 to 22.3.2 2021-05-11 06:19:04 +00:00
cri-o/ocicni Do not use inotify for OCICNI 2021-06-22 16:00:47 +02:00
cyphar/filepath-securejoin update dependencies 2019-06-24 21:29:31 +02:00
davecgh/go-spew migrate to go-modules 2019-06-24 13:20:59 +02:00
digitalocean introduce podman machine 2021-03-25 08:43:51 -05:00
disiqueira/gotree/v3 migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
docker Vendor in containers/common v0.40.0 2021-06-17 14:59:42 -04:00
fsnotify/fsnotify Bump github.com/fsnotify/fsnotify from 1.4.7 to 1.4.9 2020-03-13 09:31:40 -04:00
fsouza/go-dockerclient [NO TESTS NEEDED] Vendor in containers/buildah v1.20.0 2021-03-26 13:57:27 -04:00
ghodss/yaml migrate to go-modules 2019-06-24 13:20:59 +02:00
go-logr/logr Bump k8s.io/api from 0.20.5 to 0.21.0 2021-04-09 08:04:51 +00:00
go-task/slim-sprig Bump github.com/onsi/ginkgo from 1.15.2 to 1.16.0 2021-04-05 09:37:20 +00:00
godbus/dbus/v5 Bump github.com/coreos/go-systemd/v22 from 22.3.0 to 22.3.1 2021-04-02 07:58:47 +00:00
gogo/protobuf Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
golang Bump github.com/onsi/gomega from 1.11.0 to 1.12.0 2021-05-06 08:07:07 +00:00
google vendor in containers/storage v1.29.0 2021-04-12 12:23:11 -04:00
gorilla Bump github.com/gorilla/mux from 1.7.4 to 1.8.0 2020-09-02 06:46:20 -04:00
hashicorp Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
hpcloud/tail migrate to go-modules 2019-06-24 13:20:59 +02:00
imdario/mergo Vendor in containers/common v0.40.0 2021-06-17 14:59:42 -04:00
inconshreveable/mousetrap Migrate to cobra CLI 2019-02-08 10:26:43 -06:00
ishidawataru/sctp migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
jinzhu/copier Vendor in containers/common v0.40.0 2021-06-17 14:59:42 -04:00
json-iterator/go Bump github.com/json-iterator/go from 1.1.10 to 1.1.11 2021-04-28 08:09:20 +00:00
juju/ansiterm short-name aliasing 2020-11-13 15:40:06 +01:00
klauspost Vendor in containers/common v0.40.0 2021-06-17 14:59:42 -04:00
lunixbochs/vtclean short-name aliasing 2020-11-13 15:40:06 +01:00
manifoldco/promptui short-name aliasing 2020-11-13 15:40:06 +01:00
mattn Vendor in containers/common v0.40.0 2021-06-17 14:59:42 -04:00
matttproud/golang_protobuf_extensions update dependencies 2019-06-24 21:29:31 +02:00
Microsoft Bump github.com/containers/storage from 1.31.1 to 1.31.2 2021-05-21 07:25:04 +00:00
miekg/pkcs11 Bump github.com/containers/ocicrypt from 1.0.3 to 1.1.0 2021-02-09 10:49:43 -05:00
mistifyio/go-zfs Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
moby [NO TESTS NEEDED] Vendor in containers/buildah v1.20.0 2021-03-26 13:57:27 -04:00
modern-go migrate to go-modules 2019-06-24 13:20:59 +02:00
morikuni/aec bump containers/image to v5.0.0, buildah to v1.11.4 2019-10-29 13:35:18 -04:00
mrunalp/fileutils Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
mtrmac/gpgme vendor github.com/mtrmac/gpgme@v0.1.2 2020-02-05 09:56:25 +01:00
nxadm/tail Bump github.com/onsi/ginkgo from 1.15.0 to 1.15.1 2021-03-08 06:10:15 -05:00
onsi Bump github.com/onsi/ginkgo from 1.16.3 to 1.16.4 2021-06-03 08:01:15 +00:00
opencontainers Bump github.com/opencontainers/selinux from 1.8.1 to 1.8.2 2021-06-03 09:34:20 +00:00
openshift/imagebuilder migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
ostreedev/ostree-go github.com/containers/storage v1.12.13 2019-08-01 03:46:14 -04:00
pkg/errors build(deps): bump github.com/containers/storage from 1.15.5 to 1.15.7 2020-01-23 03:49:20 -05:00
pmezard/go-difflib migrate to go-modules 2019-06-24 13:20:59 +02:00
prometheus [NO TESTS NEEDED] Vendor in containers/buildah v1.20.0 2021-03-26 13:57:27 -04:00
rivo/uniseg Switch all builds to pull-never 2021-03-16 06:19:58 -04:00
rootless-containers/rootlesskit Bump github.com/rootless-containers/rootlesskit from 0.14.0 to 0.14.1 2021-04-03 06:34:41 -04:00
safchain/ethtool podman network create 2019-09-09 09:32:43 -05:00
seccomp/libseccomp-golang Vendor in containers/buildah 1.16.1 2020-09-11 13:37:37 -04:00
sirupsen/logrus Bump github.com/sirupsen/logrus from 1.8.0 to 1.8.1 2021-03-12 06:15:31 -05:00
spf13 Bump github.com/spf13/cobra from 1.1.2 to 1.1.3 2021-02-11 05:37:56 -05:00
stefanberger/go-pkcs11uri Bump github.com/containers/ocicrypt from 1.0.3 to 1.1.0 2021-02-09 10:49:43 -05:00
stretchr/testify Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 2021-01-14 04:22:05 -05:00
syndtr/gocapability vendor: drop replace for github.com/syndtr/gocapability 2021-03-19 15:17:12 +01:00
tchap/go-patricia update dependencies 2019-06-24 21:29:31 +02:00
uber/jaeger-client-go Bump github.com/uber/jaeger-client-go 2021-05-31 12:55:49 +00:00
ulikunitz/xz Bump github.com/containers/storage from 1.28.0 to 1.28.1 2021-03-25 07:05:38 +00:00
vbatts/tar-split migrate to go-modules 2019-06-24 13:20:59 +02:00
vbauerster/mpb Vendor in containers/common v0.40.0 2021-06-17 14:59:42 -04:00
vishvananda Bump github.com/containernetworking/plugins from 0.8.7 to 0.9.0 2020-12-10 05:15:22 -05:00
VividCortex/ewma Bump github.com/vbauerster/mpb/v6 from 6.0.3 to 6.0.4 2021-05-19 06:50:18 +00:00
xeipuuv vendor c/image v5.4.2 2020-04-07 12:09:48 +02:00