You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by gy...@apache.org on 2024/11/26 09:30:43 UTC
(flink-kubernetes-operator) branch main updated: [FLINK-36545] Fix uid/gid mixup when generating the OLM bundle
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 cfcee024 [FLINK-36545] Fix uid/gid mixup when generating the OLM bundle
cfcee024 is described below
commit cfcee024e2639b83970459d0d2743ef6cf544626
Author: Keith Wall <kw...@redhat.com>
AuthorDate: Tue Nov 26 09:30:38 2024 +0000
[FLINK-36545] Fix uid/gid mixup when generating the OLM bundle
The docker container was being run with the uid/gid arguments switched about.
---
tools/olm/generate-olm-bundle.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/olm/generate-olm-bundle.sh b/tools/olm/generate-olm-bundle.sh
index e6328041..3ed25621 100755
--- a/tools/olm/generate-olm-bundle.sh
+++ b/tools/olm/generate-olm-bundle.sh
@@ -39,8 +39,8 @@ CSV_TEMPLATE_DIR="${BASEDIR}/csv-template"
# Generate bundle in a docker container
generate_olm_bundle() {
- uid="$(id -g ${USER})"
- gid="$(id -u ${USER})"
+ uid="$(id -u ${USER})"
+ gid="$(id -g ${USER})"
cp -r ../../helm ./
docker build -t "${OLMTOOL_IMG}" -f utils.Dockerfile ${BASEDIR}
docker run --user="${uid}:${gid}" -v ${BASEDIR}:/olm "${OLMTOOL_IMG}"