From d07689902b5f2fca3b00f785264d61024a9c1b28 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:19:17 +0200 Subject: [PATCH] storj - do not rerun setup if the file exists (#2241) --- library/ix-dev/charts/storj/Chart.yaml | 4 ++-- library/ix-dev/charts/storj/templates/_storj.tpl | 16 +++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/library/ix-dev/charts/storj/Chart.yaml b/library/ix-dev/charts/storj/Chart.yaml index 7423f0dfd9..3648e79f2c 100644 --- a/library/ix-dev/charts/storj/Chart.yaml +++ b/library/ix-dev/charts/storj/Chart.yaml @@ -3,10 +3,10 @@ description: Share your storage on the internet and earn. annotations: title: Storj type: application -version: 2.0.0 +version: 2.0.1 apiVersion: v2 appVersion: v1.68.2 -kubeVersion: '>=1.16.0-0' +kubeVersion: ">=1.16.0-0" maintainers: - name: truenas url: https://www.truenas.com/ diff --git a/library/ix-dev/charts/storj/templates/_storj.tpl b/library/ix-dev/charts/storj/templates/_storj.tpl index 9866ad44ec..2efb079ecc 100644 --- a/library/ix-dev/charts/storj/templates/_storj.tpl +++ b/library/ix-dev/charts/storj/templates/_storj.tpl @@ -16,14 +16,6 @@ workload: runAsUser: {{ .Values.storjRunAs.user }} runAsGroup: {{ .Values.storjRunAs.group }} readOnlyRootFilesystem: false - # capabilities: - # add: - # - CHOWN - # - DAC_OVERRIDE - # - FOWNER - # - SETGID - # - SETUID - # - KILL {{- include "storj.args" $ | nindent 10 }} envFrom: - secretRef: @@ -89,5 +81,11 @@ workload: - /bin/sh - -c - | - test ! -f /app/config/config.yaml && export SETUP="true"; /entrypoint + if test ! -f /app/config/config.yaml; then + echo "Setting up Storj" + export SETUP="true" + /entrypoint + else + echo "Storj already setup" + fi {{- end -}}