Skip to content

Commit 9473c3d

Browse files
jsm84Allda
authored andcommitted
Run generate-index as gid 1000
Fixes #387 This should work across all known OpenShift architectures, storage plugins, and filesystems (without extended attributes). Signed-off-by: Josh Manning <[email protected]>
1 parent 6fd215c commit 9473c3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ansible/roles/operator-pipeline/templates/openshift/tasks/generate-index.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
# This is needed to ensure the inspect-base-index step, which runs
4242
# under a different UID, has access to its output file
4343
truncate -s 0 podman-inspect.json
44+
chown :1000 podman-inspect.json
4445
chmod 664 podman-inspect.json
4546
4647
mkdir -p $DOCKER_CONFIG
@@ -57,6 +58,7 @@ spec:
5758
workingDir: $(workspaces.output.path)
5859
securityContext:
5960
runAsUser: 1000
61+
runAsGroup: 1000
6062
script: |
6163
#! /usr/bin/env bash
6264
set -exo pipefail

0 commit comments

Comments
 (0)