Skip to content

Commit

Permalink
FLINK-36544: OLM - ensure file permissions are preserved on the CSV d…
Browse files Browse the repository at this point in the history
…uring bundle creation.

Signed-off-by: kwall <[email protected]>
  • Loading branch information
k-wall committed Oct 15, 2024
1 parent d72e3ce commit 61ec2f5
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 61ec2f5

Please sign in to comment.