From 09713e1a8644d5e0afc07c6219aff19d0796b7c2 Mon Sep 17 00:00:00 2001 From: Venkatesh Date: Mon, 24 Nov 2025 11:57:38 +0530 Subject: [PATCH 1/2] add some extra logging in mirroring step --- pkg/types/on-demand.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/types/on-demand.sh b/pkg/types/on-demand.sh index 9c437016..23ea9237 100644 --- a/pkg/types/on-demand.sh +++ b/pkg/types/on-demand.sh @@ -25,6 +25,7 @@ copyImageFromRegistry() { exit 1 fi done + echo "Mirroring the source image '${SOURCE_REGISTRY}/${REPOSITORY}@${DIGEST}' to target registry '${TARGET_ACR}'." # create temporary FS structure TMP_DIR="$(mktemp -d)" @@ -70,7 +71,7 @@ copyImageFromRegistry() { # it is crucial though, that the tagged image is not used in favor of the @sha256:digest one # as the tag is NOT guaranteed to be immutable TARGET_IMAGE="${TARGET_ACR_LOGIN_SERVER}/${REPOSITORY}:${DIGEST_NO_PREFIX}" - echo "Mirroring image ${SRC_IMAGE} to ${TARGET_IMAGE}." + echo "Executing Mirroring of image ${SRC_IMAGE} to ${TARGET_IMAGE}." echo "The image will still be available under it's original digest ${DIGEST} in the target registry." oras cp "${SRC_IMAGE}" "${TARGET_IMAGE}" --from-registry-config "${AUTH_JSON}" --to-registry-config "${AUTH_JSON}" } From cd175d7df79c8d1262d21e57d3849b672acd3464 Mon Sep 17 00:00:00 2001 From: Venkatesh Date: Mon, 24 Nov 2025 21:03:00 +0530 Subject: [PATCH 2/2] move the logging --- pkg/types/on-demand.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/types/on-demand.sh b/pkg/types/on-demand.sh index 23ea9237..3b0e7520 100644 --- a/pkg/types/on-demand.sh +++ b/pkg/types/on-demand.sh @@ -11,6 +11,7 @@ copyImageFromRegistry() { exit 1 fi done + echo "Mirroring the source image '${SOURCE_REGISTRY}/${REPOSITORY}@${DIGEST}' to target registry '${TARGET_ACR}'." ACR_DOMAIN_SUFFIX="$(az cloud show --query "suffixes.acrLoginServerEndpoint" --output tsv)" if [[ "${SOURCE_REGISTRY}" == "${TARGET_ACR}${ACR_DOMAIN_SUFFIX}" ]]; then echo "Source and target registry are the same. No mirroring needed." @@ -25,7 +26,6 @@ copyImageFromRegistry() { exit 1 fi done - echo "Mirroring the source image '${SOURCE_REGISTRY}/${REPOSITORY}@${DIGEST}' to target registry '${TARGET_ACR}'." # create temporary FS structure TMP_DIR="$(mktemp -d)"