Use full name for hyperkube image inspect
Task: 39898
Story: 2007001
Change-Id: I648333ba7c4e818f500a82b20d09403a45cca724
(cherry picked from commit 4b5018388c
)
This commit is contained in:
parent
bd4ce06357
commit
6f6e3a8399
|
@ -38,7 +38,7 @@ do
|
|||
done
|
||||
|
||||
if [ "$(echo $USE_PODMAN | tr '[:upper:]' '[:lower:]')" == "true" ]; then
|
||||
KUBE_DIGEST=$($ssh_cmd podman image inspect hyperkube:${KUBE_TAG} --format "{{.Digest}}")
|
||||
KUBE_DIGEST=$($ssh_cmd podman image inspect ${CONTAINER_INFRA_PREFIX:-k8s.gcr.io/}hyperkube:${KUBE_TAG} --format "{{.Digest}}")
|
||||
if [ -n "${KUBE_IMAGE_DIGEST}" ] && [ "${KUBE_IMAGE_DIGEST}" != "${KUBE_DIGEST}" ]; then
|
||||
printf "The sha256 ${KUBE_DIGEST} of current hyperkube image cannot match the given one: ${KUBE_IMAGE_DIGEST}."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue