From 80e19493dc6253cdb4b729058e06eda8351fa771 Mon Sep 17 00:00:00 2001 From: agreppin Date: Thu, 31 Mar 2022 22:53:44 +0200 Subject: [PATCH] fix(gitea): set user and group to 1000 (#2356) * Gitea: runAsUser git = 1000 fixes #2136, runAsUser 1000, from gitea/helm-chart/values.yaml * Update values.yaml * bump Co-authored-by: Kjeld Schouten-Lebbing Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- charts/stable/gitea/Chart.yaml | 2 +- charts/stable/gitea/questions.yaml | 6 +++--- charts/stable/gitea/values.yaml | 5 +++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/stable/gitea/Chart.yaml b/charts/stable/gitea/Chart.yaml index dda6b6e0fc6..631f2b83cd9 100644 --- a/charts/stable/gitea/Chart.yaml +++ b/charts/stable/gitea/Chart.yaml @@ -34,7 +34,7 @@ sources: - https://github.com/go-gitea/gitea - https://hub.docker.com/r/gitea/gitea/ type: application -version: 6.0.14 +version: 6.0.15 annotations: truecharts.org/catagories: | - GIT diff --git a/charts/stable/gitea/questions.yaml b/charts/stable/gitea/questions.yaml index 193fe80c4fd..3c56dfd3540 100644 --- a/charts/stable/gitea/questions.yaml +++ b/charts/stable/gitea/questions.yaml @@ -433,19 +433,19 @@ questions: description: "The UserID of the user running the application" schema: type: int - default: 568 + default: 1000 - variable: runAsGroup label: "runAsGroup" description: The groupID this App of the user running the application" schema: type: int - default: 568 + default: 1000 - variable: fsGroup label: "fsGroup" description: "The group that should own ALL storage." schema: type: int - default: 568 + default: 1000 # Include{podSecurityContextAdvanced} # Include{resources} diff --git a/charts/stable/gitea/values.yaml b/charts/stable/gitea/values.yaml index 225d3349259..9e8ef5d3028 100644 --- a/charts/stable/gitea/values.yaml +++ b/charts/stable/gitea/values.yaml @@ -3,6 +3,11 @@ image: tag: v1.16.5@sha256:0f6cc532ccb61009492bd121fd37dd8c252687033c724ecc44b795ccf88b00f8 pullPolicy: IfNotPresent +podSecurityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 + service: main: ports: