Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tools/olm/docker-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ generate_olm_bundle() {
yq ea -i "del(.subjects[0].namespace)" "${ROLE_BINDING}"

# Needed to replace description with new bundle values
sed -i "s/RELEASE_VERSION/${BUNDLE_VERSION}/" "${CSV_FILE}"
sed --in-place=.old "s/RELEASE_VERSION/${BUNDLE_VERSION}/" "${CSV_FILE}"
# Ensure that file permissions are preserved
chmod --reference="${CSV_FILE}".old "${CSV_FILE}"
rm "${CSV_FILE}".old
}

validate_olm_bundle() {
Expand Down