From fa2fda8cd2f9b9f4389f3f095184390372ca7a83 Mon Sep 17 00:00:00 2001 From: nold Date: Sun, 27 Nov 2022 21:07:21 +0100 Subject: [PATCH] feat(deluge): init container --- projects/downloader/charts/deluge/values.yaml | 12 +++++++++--- projects/downloader/values/deluge.yaml | 18 +++++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/projects/downloader/charts/deluge/values.yaml b/projects/downloader/charts/deluge/values.yaml index ffbf9c35..46b09c50 100644 --- a/projects/downloader/charts/deluge/values.yaml +++ b/projects/downloader/charts/deluge/values.yaml @@ -1,7 +1,7 @@ --- image: - repository: reg.dc/deluge - tag: 2.1.1 + repository: lib42/deluge + tag: 2.1.1-r6 command: [ "/usr/bin/deluge-web" ] args: [ "-d", "-c", "/config", "-L", "info" ] @@ -101,9 +101,15 @@ addons: initialDelaySeconds: 30 periodSeconds: 30 +initContainers: + init-config: + image: lib42/deluge:2.1.1-r6 + command: ["/bin/sh"] + args: [ "-c", "[ ! -f /config/core.conf ] && cp -v /defaults/core.conf /config/core.conf"] + additionalContainers: deluge-daemon: - image: reg.dc/deluge:2.1.1 + image: lib42/deluge:2.1.1-r6 volumeMounts: - name: config mountPath: /config diff --git a/projects/downloader/values/deluge.yaml b/projects/downloader/values/deluge.yaml index ffbf9c35..4bf87224 100644 --- a/projects/downloader/values/deluge.yaml +++ b/projects/downloader/values/deluge.yaml @@ -1,11 +1,14 @@ --- image: - repository: reg.dc/deluge - tag: 2.1.1 + repository: lib42/deluge + tag: 2.1.1-r6 command: [ "/usr/bin/deluge-web" ] args: [ "-d", "-c", "/config", "-L", "info" ] +podSecurityContext: + fsGroup: 1000 + securityContext: runAsNonRoot: true privileged: false @@ -101,9 +104,18 @@ addons: initialDelaySeconds: 30 periodSeconds: 30 +initContainers: + init-config: + image: lib42/deluge:2.1.1-r6 + command: ["/bin/sh"] + args: [ "-c", "([ ! -f /config/core.conf ] && cp -v /defaults/core.conf /config/core.conf) || true"] + volumeMounts: + - name: config + mountPath: /config + additionalContainers: deluge-daemon: - image: reg.dc/deluge:2.1.1 + image: lib42/deluge:2.1.1-r6 volumeMounts: - name: config mountPath: /config