Skip to content

Commit

Permalink
Use SHA digest for operator deployment image within CSV
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <medgar@redhat.com>
  • Loading branch information
MikeEdgar committed Dec 2, 2024
1 parent f295cd2 commit 30bf7ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operator/bin/modify-bundle-metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ ${YQ} eval -o yaml -i ".spec.relatedImages = null" "${CSV_FILE_PATH}"
echo "[DEBUG] Setting container image = ${operator_image_with_digest}"
${YQ} eval -o yaml -i ".spec.relatedImages += [{\"name\": \"${OPERATOR_NAME}\", \"image\": \"${operator_image_with_digest}\"}]" "${CSV_FILE_PATH}";
${YQ} eval -o yaml -i ".metadata.annotations.containerImage = \"${operator_image_with_digest}\"" "${CSV_FILE_PATH}"
${YQ} eval -o yaml -i ".spec.install.spec.deployments[0].spec.template.spec.containers[0].image = \"${operator_image_with_digest}\"" "${CSV_FILE_PATH}"

# Add current createdAt time
curr_time_date="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
Expand Down

0 comments on commit 30bf7ca

Please sign in to comment.