Skip to content

Commit

Permalink
Using digest for Operator update in Certified Operators Repo (#1145)
Browse files Browse the repository at this point in the history
using digest instead
  • Loading branch information
cniackz authored Jun 4, 2022
1 parent dd9dedb commit 41a3534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion olm-post-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ for catalog in "${redhatCatalogs[@]}"; do
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"
operatorImageDigest="quay.io/minio/operator@${digest}"
echo "operatorImageDigest: ${operatorImageDigest} @ ${digest}"
yq -i ".metadata.annotations.containerImage |= (\"${operatorImageDigest}\")" bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml

Expand Down

0 comments on commit 41a3534

Please sign in to comment.