Keith Wall created FLINK-36545:
----------------------------------
Summary: generate-olm-bundle.sh switches uid/gid when runner 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
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})"}}
{{ gid="$(id -u ${USER})"}}
{{ 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)