diff --git a/charts/incubator/qbitrr/Chart.yaml b/charts/incubator/qbitrr/Chart.yaml index 79391175f44..1cb3582ae80 100644 --- a/charts/incubator/qbitrr/Chart.yaml +++ b/charts/incubator/qbitrr/Chart.yaml @@ -22,7 +22,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/incubator/qbitrr - https://github.com/Feramance/Qbitrr type: application -version: 0.0.3 +version: 0.0.4 annotations: truecharts.org/SCALE-support: "true" truecharts.org/catagories: | diff --git a/charts/incubator/qbitrr/questions.yaml b/charts/incubator/qbitrr/questions.yaml index 83e40095181..111363cd1e6 100644 --- a/charts/incubator/qbitrr/questions.yaml +++ b/charts/incubator/qbitrr/questions.yaml @@ -41,13 +41,13 @@ questions: description: "The UserID of the user running the application" schema: type: int - default: 568 + default: 0 - variable: runAsGroup label: "runAsGroup" description: "The groupID this App of the user running the application" schema: type: int - default: 568 + default: 0 # Include{securityContextContainer} # Include{securityContextAdvanced} # Include{securityContextPod} diff --git a/charts/incubator/qbitrr/values.yaml b/charts/incubator/qbitrr/values.yaml index da4f9f563c9..1ecc1a668b1 100644 --- a/charts/incubator/qbitrr/values.yaml +++ b/charts/incubator/qbitrr/values.yaml @@ -5,6 +5,9 @@ image: securityContext: container: readOnlyRootFilesystem: false + runAsNonRoot: false + runAsUser: 0 + runAsGroup: 0 service: main: @@ -16,6 +19,24 @@ service: workload: main: podSpec: + initContainers: + 1-create-config-file: + type: install + enabled: true + imageSelector: "image" + command: + - /bin/sh + - -c + args: + - | + conf="/config/config.toml" + example="https://raw.githubusercontent.com/Feramance/qBitrr/master/config.example.toml" + if [ -f "$conf" ]; then + echo "$conf exists. Skipping..." + else + echo "$conf does not exist... Downloading the example from upstream..." + wget "$example" -O $conf || echo "Failed to download" + fi containers: main: probes: @@ -30,6 +51,10 @@ persistence: config: enabled: true mountPath: /config + targetSelector: + main: + main: {} + 1-create-config-file: {} downloads: enabled: true mountPath: /completed_downloads @@ -37,4 +62,3 @@ persistence: portal: open: enabled: false -