Skip to content

Commit bc493c3

Browse files
authored
[FLINK-36544][OLM ] Ensure file permissions are preserved on the CSV during bundle creation
Signed-off-by: kwall <[email protected]>
1 parent ad8354b commit bc493c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/olm/docker-entry.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ generate_olm_bundle() {
9898
yq ea -i "del(.subjects[0].namespace)" "${ROLE_BINDING}"
9999

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

104107
validate_olm_bundle() {

0 commit comments

Comments
 (0)