[ https://issues.apache.org/jira/browse/FLINK-36545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated FLINK-36545: ----------------------------------- Labels: pull-request-available (was: ) > generate-olm-bundle.sh switches uid/gid when running the OLM tool image > ----------------------------------------------------------------------- > > Key: FLINK-36545 > URL: https://issues.apache.org/jira/browse/FLINK-36545 > Project: Flink > Issue Type: Bug > Components: Kubernetes Operator > Reporter: Keith Wall > Priority: Major > Labels: pull-request-available > > I noticed while investigating FLINK-36544 that the uid/gid values are > switched around. uid gets assigned to the user's gid, and gid to the user's > uid. This doesn't seem to cause a functional problem for me, but this appears > to be wrong. > [https://github.com/apache/flink-kubernetes-operator/blob/d72e3ce294e3902cf041811e0fcf2ba50880cc31/tools/olm/generate-olm-bundle.sh#L42] > {{generate_olm_bundle() {}} > {{ uid="$(id -g ${USER})" # Should be -u}} > {{ gid="$(id -u ${USER})" # Should be -g}} > {{ cp -r ../../helm ./}} > {{{} docker build -t "${OLMTOOL_IMG}" -f utils.Dockerfile $\{BASEDIR{}}}} > {{ docker run --user="${uid}:${gid}" -v ${BASEDIR}:/olm "${OLMTOOL_IMG}"}} > {{ rm -rf helm}} > {{}}} > -- This message was sent by Atlassian Jira (v8.20.10#820010)