Browse Source

Use full name for hyperkube image inspect

Task: 39898
Story: 2007001

Change-Id: I648333ba7c4e818f500a82b20d09403a45cca724
(cherry picked from commit 4b5018388ca04e672a5ba414543eb835eb094e59)
tags/9.4.0
Feilong Wang 1 month ago
parent
commit
17605eb0d7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      magnum/drivers/common/templates/kubernetes/fragments/enable-services-master.sh

+ 1
- 1
magnum/drivers/common/templates/kubernetes/fragments/enable-services-master.sh View File

@@ -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…
Cancel
Save