From e96d69d5b5c21d2d30394794f0da4d43ad14b45e Mon Sep 17 00:00:00 2001 From: cjil Date: Tue, 5 Aug 2025 15:59:00 +1000 Subject: [PATCH] fix(gitea) add admin.passwordRole (#37920) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add passwordMode and existingSecret configuration options to admin from upstream Included @param documentation to explain each field **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code - [ ] 📜 Documentation Changes **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made changes to the documentation - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: cjil --- charts/stable/gitea/Chart.yaml | 2 +- charts/stable/gitea/templates/_configmap.tpl | 1 + charts/stable/gitea/values.yaml | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/stable/gitea/Chart.yaml b/charts/stable/gitea/Chart.yaml index 53757e1003d..5a4b9c8502c 100644 --- a/charts/stable/gitea/Chart.yaml +++ b/charts/stable/gitea/Chart.yaml @@ -48,5 +48,5 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/gitea - https://hub.docker.com/r/gitea/gitea type: application -version: 22.4.0 +version: 22.4.1 diff --git a/charts/stable/gitea/templates/_configmap.tpl b/charts/stable/gitea/templates/_configmap.tpl index 7605060d627..39567dbd5da 100644 --- a/charts/stable/gitea/templates/_configmap.tpl +++ b/charts/stable/gitea/templates/_configmap.tpl @@ -8,6 +8,7 @@ data: GITEA_TEMP: "/tmp/gitea" GITEA_ADMIN_USERNAME: {{ .Values.admin.username | quote }} GITEA_ADMIN_PASSWORD: {{ .Values.admin.password | quote }} + GITEA_ADMIN_PASSWORD_MODE: {{ .Values.admin.passwordMode | quote }} SSH_PORT: {{ .Values.service.ssh.ports.ssh.port | quote }} SSH_LISTEN_PORT: {{ .Values.service.ssh.ports.ssh.targetPort | quote }} TMPDIR: "/tmp/gitea" diff --git a/charts/stable/gitea/values.yaml b/charts/stable/gitea/values.yaml index 4839ddebafe..45d1257e568 100644 --- a/charts/stable/gitea/values.yaml +++ b/charts/stable/gitea/values.yaml @@ -28,10 +28,13 @@ persistence: signing: enabled: true gpgHome: /data/git/.gnupg + admin: + # existingSecret: gitea-admin-secret username: giteaadmin password: r8sA8CPHD9!bt6d email: "gitea@local.domain" + passwordMode: keepUpdated # Options: initialOnlyNoReset, initialOnlyRequireReset, or keepUpdated metrics: main: enabled: true