From 4be5eedcd40b90c026414f2df7fadd94ee27f9c7 Mon Sep 17 00:00:00 2001 From: Cesar Celis Hernandez Date: Tue, 4 Apr 2023 05:44:06 -0600 Subject: [PATCH] Removing duplicated string from registry (#1547) --- olm-post-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/olm-post-script.sh b/olm-post-script.sh index 0d99a8eddfe..1679ed25b1f 100755 --- a/olm-post-script.sh +++ b/olm-post-script.sh @@ -39,7 +39,7 @@ for catalog in "${redhatCatalogs[@]}"; do # Console Image in Digested form: sha256:xxxx consoleImage=$(yq eval-all '.spec.install.spec.deployments[0].spec.template.spec.containers[0].image' bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml) echo "consoleImage: ${consoleImage}" - consoleImageDigest=$(docker pull "quay.io/"${consoleImage} | grep Digest | awk -F ' ' '{print $2}') + consoleImageDigest=$(docker pull ${consoleImage} | grep Digest | awk -F ' ' '{print $2}') echo "consoleImageDigest: ${consoleImageDigest}" consoleImageDigest="quay.io/minio/console@${consoleImageDigest}" yq -i ".spec.install.spec.deployments[0].spec.template.spec.containers[0].image |= (\"${consoleImageDigest}\")" bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml