fix: clone r10k config to /tmp/r10k-config instead of /shared (#76)

The g10k-code cronjob was failing with "Permission denied" because the
container (running as uid 999, non-root) attempted to create /shared in
the container root filesystem, which is not writable. Clone to /tmp
which is always writable by unprivileged users.

Reviewed-on: #76
This commit was merged in pull request #76.
This commit is contained in:
2026-03-24 19:25:06 +11:00
parent 1388875685
commit e269220228
+2 -2
View File
@@ -44,9 +44,9 @@ spec:
- |
set -e
echo "Cloning r10k config repository..."
git clone https://git.unkin.net/unkin/puppet-r10k.git /shared
git clone https://git.unkin.net/unkin/puppet-r10k.git /tmp/r10k-config
echo "Running g10k..."
/usr/bin/g10k -config /shared/r10k.yaml
/usr/bin/g10k -config /tmp/r10k-config/r10k.yaml
envFrom: null
env: []
securityContext: