Skip to content

Commit cfcee02

Browse files
authored
[FLINK-36545] Fix uid/gid mixup when generating the OLM bundle
The docker container was being run with the uid/gid arguments switched about.
1 parent 5d29554 commit cfcee02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/olm/generate-olm-bundle.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ CSV_TEMPLATE_DIR="${BASEDIR}/csv-template"
3939

4040
# Generate bundle in a docker container
4141
generate_olm_bundle() {
42-
uid="$(id -g ${USER})"
43-
gid="$(id -u ${USER})"
42+
uid="$(id -u ${USER})"
43+
gid="$(id -g ${USER})"
4444
cp -r ../../helm ./
4545
docker build -t "${OLMTOOL_IMG}" -f utils.Dockerfile ${BASEDIR}
4646
docker run --user="${uid}:${gid}" -v ${BASEDIR}:/olm "${OLMTOOL_IMG}"

0 commit comments

Comments
 (0)