Commit c63a371
committed
fix(disconnected): set BUILDAH_ISOLATION=chroot for operator handler
The CI pod runs with nested_podman: true (hostUsers: false), placing
it inside a Linux user namespace. When prepare-restricted-environment.sh
calls podman build, podman tries to create another user namespace
inside the existing one, which fails with:
newuidmap: open of uid_map failed: Permission denied
Error: cannot set up namespace using /usr/bin/newuidmap: exit status 1
Export BUILDAH_ISOLATION=chroot before invoking the script so all
podman build / buildah calls use chroot isolation instead of nested
user namespaces. The env var is respected by both podman and buildah
without needing to modify the downstream rhdh-operator script.
Assisted-by: OpenCode1 parent 8de2b86 commit c63a371
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| |||
0 commit comments