From 35dfd9e2c15b55a37b405e1e0f9f0dbd3b4b59ca Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 17 Dec 2023 15:13:07 +0100 Subject: [PATCH] fix(borg-server): add SYS_CHROOT capability (#15514) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes #15510 **⚙️ 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 **🧪 How Has This Been Tested?** I've applied the proposed changes live on my kubernetes deployment. I generated the manifests using `helm template` to ensure the results of the changes is the expected ones. **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [x] 🧪 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 **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ 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: Kjeld Schouten Co-authored-by: Kjeld Schouten --- charts/stable/borg-server/Chart.yaml | 2 +- charts/stable/borg-server/values.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/stable/borg-server/Chart.yaml b/charts/stable/borg-server/Chart.yaml index 5020da80b5f..fc19195c5f8 100644 --- a/charts/stable/borg-server/Chart.yaml +++ b/charts/stable/borg-server/Chart.yaml @@ -1,7 +1,7 @@ kubeVersion: ">=1.24.0-0" apiVersion: v2 name: borg-server -version: 1.1.2 +version: 1.1.3 appVersion: 2.2.1 description: A borg Backup server home: https://truecharts.org/charts/stable/borg-server diff --git a/charts/stable/borg-server/values.yaml b/charts/stable/borg-server/values.yaml index 79f2b205c08..ccd50c1b700 100644 --- a/charts/stable/borg-server/values.yaml +++ b/charts/stable/borg-server/values.yaml @@ -25,6 +25,11 @@ workload: env: BORG_UID: "{{ .Values.securityContext.container.PUID }}" BORG_GID: "{{ .Values.securityContext.pod.fsGroup }}" + securityContext: + capabilities: + add: + - SYS_CHROOT + - KILL persistence: borg: