extraVolumeMounts
during initial deployment might cause /data/gitea/conf/app.ini
to not get created
#296
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?
I've spent many hours troubleshooting a fresh deployment which had an additional
extraVolumeMounts
set with a mount path ofmountPath: "/data/gitea/public/css"
.If such a mount exists, the initial creation of
/data/gitea/conf/app.ini
won't work and theinit-app-ini
container will fail withI am not entirely sure how the mount interfers here but I know from other expierences that this is not a rare event.
Adding the mount after the initial deployment won't cause any issues.
I've reproduced this issue multiple times.
When reproducing, it is important to start with a fresh data dir, i.e. to not use persistence.
Related to this comment: https://gitea.com/gitea/helm-chart/issues/287#issuecomment-693179
@pat-s I've created PR #337 which allows to differ between additional init container mounts and runtime container mounts. Feel free to check it out and test it.