Unable to set fsGroup other than 1000 in helm chart #338
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Re-post from GitHub: https://github.com/go-gitea/gitea/issues/19138.
Switching UID and GID is not possible, too.
Hello,
The workaround found by tgckpg is correct (create a pvc and mount it to /var/lib/gitea). This is a common challenge when running container images with arbitrary user id.
There are (at least) four options if we want to fix this:
chmod 777 /var/lib/gitea
What are your views on this?
I just debugged this a bit:
$HOME
in the helm chart (w rootless img) is actually/data/gitea/git
by default, notvar/lib/gitea/git
(vanilla docker image)fsGroup
and friends, i.e. I used the following values.yml settingsresulting in
and a healthy pod. It might be that something changed in the rootless image meanwhile (I don't have time to go through the changes) but it looks like as if this is not an issue anymore.
Hence I'll close here, happy to re-open if anybody (e.g. @nmasse-itix) is still having issues here.
PS: I used
1.21-rootless
.We have hard coded
chown 1000:1000
in ourinit.yaml
template that are executed when using the root-based images12, or when configuring signing GPG key3 (no matter the used image).Unfortunately, it's not as easy as replacing them with
${UID}:${GID}
.I've tried with this diff
7eea1acf05/templates/gitea/init.yaml (L30)
↩︎7eea1acf05/templates/gitea/init.yaml (L39)
↩︎7eea1acf05/templates/gitea/init.yaml (L47)
↩︎