diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-28 12:35:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 12:35:12 -0800 |
commit | 63b1656f4c91675dce79fbf6e02018659a0badc1 (patch) | |
tree | 65142d928d2eb9b799808f90b94032f6e19af1b2 /libpod | |
parent | d8f2333b29765d3407f90b062bfb40e43133d5e8 (diff) | |
parent | 31a1f44fe6934c6247f7bf2f5774805b263da660 (diff) | |
download | podman-63b1656f4c91675dce79fbf6e02018659a0badc1.tar.gz podman-63b1656f4c91675dce79fbf6e02018659a0badc1.tar.bz2 podman-63b1656f4c91675dce79fbf6e02018659a0badc1.zip |
Merge pull request #4993 from baude/playkubepull
honor pull policy in play kube
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/image/config.go | 6 | ||||
-rw-r--r-- | libpod/image/parts.go | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libpod/image/config.go b/libpod/image/config.go index bb84175a3..efd83d343 100644 --- a/libpod/image/config.go +++ b/libpod/image/config.go @@ -1,5 +1,11 @@ package image +const ( + // LatestTag describes the tag used to refer to the latest version + // of an image + LatestTag = "latest" +) + // ImageDeleteResponse is the response for removing an image from storage and containers // what was untagged vs actually removed type ImageDeleteResponse struct { //nolint diff --git a/libpod/image/parts.go b/libpod/image/parts.go index d4677f935..d6c98783b 100644 --- a/libpod/image/parts.go +++ b/libpod/image/parts.go @@ -67,7 +67,7 @@ func (ip *imageParts) suspiciousRefNameTagValuesForSearch() (string, string, str } else if _, hasDigest := ip.unnormalizedRef.(reference.Digested); hasDigest { tag = "none" } else { - tag = "latest" + tag = LatestTag } return registry, imageName, tag } |