From 404778639d8292c38478c433964a395057541269 Mon Sep 17 00:00:00 2001 From: Tom Neuber Date: Tue, 14 Jan 2025 20:42:31 +0100 Subject: [PATCH] chore(woodpecker): add init container to correct data permission --- woodpecker/values/values.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/woodpecker/values/values.yaml b/woodpecker/values/values.yaml index 9e35534..4378d1f 100644 --- a/woodpecker/values/values.yaml +++ b/woodpecker/values/values.yaml @@ -18,6 +18,13 @@ server: - hosts: - woodpecker.ar21.de secretName: woodpecker-tls-key + initContainers: + - name: fix-permissions + image: busybox + command: ["sh", "-c", "chown -R 1000:1000 /mnt"] + volumeMounts: + - mountPath: /mnt + name: data statefulSet: replicaCount: 1 env: