This is an automated email from the ASF dual-hosted git repository.
gyfora pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new bc493c3a [FLINK-36544][OLM ] Ensure file permissions are preserved on
the CSV during bundle creation
bc493c3a is described below
commit bc493c3aa4980404ae4288401f30a6d1734bc6d6
Author: Keith Wall <[email protected]>
AuthorDate: Mon Nov 4 06:34:42 2024 +0000
[FLINK-36544][OLM ] Ensure file permissions are preserved on the CSV during
bundle creation
Signed-off-by: kwall <[email protected]>
---
tools/olm/docker-entry.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/olm/docker-entry.sh b/tools/olm/docker-entry.sh
index 9487d6c6..1d106f6b 100755
--- a/tools/olm/docker-entry.sh
+++ b/tools/olm/docker-entry.sh
@@ -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() {