Skip to content

Commit

Permalink
Remove unnecessary code from olm.sh (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
cniackz authored Jun 10, 2022
1 parent ced356b commit 56cf25b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions olm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,10 @@ for catalog in "${redhatCatalogs[@]}"; do

myenv=$EXAMPLE yq -i e ".metadata.annotations.alm-examples |= (\"\${myenv}\" | envsubst)" bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml

# Avoid message: "There are unpinned images digests!" by using Digest Sha256:xxxx rather than vx.x.x
# Set the version, later in olm-post-script.sh we change for Digest form.
containerImage="quay.io/minio/operator:v${RELEASE}"
echo "containerImage: ${containerImage}"
digest=$(docker pull $containerImage | grep Digest | awk -F ' ' '{print $2}')
operatorImageDigest="quay.io/minio/operator:v${RELEASE}"
if [ -n "${digest}" ]; then
echo "digest: ${operatorImageDigest} @ ${digest}"
else
echo "digest: ${operatorImageDigest}"
fi
yq -i ".metadata.annotations.containerImage |= (\"${operatorImageDigest}\")" bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml

# Console Image in Digested form: sha256:xxxx
Expand Down

0 comments on commit 56cf25b

Please sign in to comment.