Add check on chown in init container (#165) All checks were successful continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
The chown in the init container will fail in the rootles image. Checking if the image is rootless or not will prevent this error noise. Co-authored-by: Lucas Hahn <lucas.hahn@novum-rgi.de> Reviewed-on: gitea/helm-chart#165 Reviewed-by: Andrew Thornton <art27@cantab.net> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: luhahn <luhahn@noreply.gitea.io> Co-committed-by: luhahn <luhahn@noreply.gitea.io>
This commit was merged in pull request #165.
This commit is contained in:
@@ -16,7 +16,9 @@ stringData: | ||||
# END: initPreScript | ||||
{{- end }} | ||||
| ||||
{{- if not .Values.image.rootless }} | ||||
chown 1000:1000 /data | ||||
{{- end }} | ||||
mkdir -p /data/git/.ssh | ||||
chmod -R 700 /data/git/.ssh | ||||
mkdir -p /data/gitea/conf | ||||
| ||||
Reference in New Issue
Block a user