From ae16b616e928b22fbc81d75e9e003c15310b948f Mon Sep 17 00:00:00 2001 From: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> Date: Mon, 3 Jul 2023 16:26:13 -0400 Subject: [PATCH] fix(sftpgo) fix questions (#10092) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ 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?** **📃 Notes:** **✔️ Checklist:** - [X] ⚖️ 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 - [ ] 🧪 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: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- charts/incubator/sftpgo/Chart.yaml | 2 +- charts/incubator/sftpgo/questions.yaml | 7 ++-- charts/incubator/sftpgo/values.yaml | 56 +++++++++++++------------- 3 files changed, 32 insertions(+), 33 deletions(-) diff --git a/charts/incubator/sftpgo/Chart.yaml b/charts/incubator/sftpgo/Chart.yaml index 6cd29f57179..2af73ac6906 100644 --- a/charts/incubator/sftpgo/Chart.yaml +++ b/charts/incubator/sftpgo/Chart.yaml @@ -21,7 +21,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/incubator/sftpgo - https://github.com/drakkan/sftpgo type: application -version: 3.0.0 +version: 3.0.1 annotations: truecharts.org/SCALE-support: "true" truecharts.org/catagories: | diff --git a/charts/incubator/sftpgo/questions.yaml b/charts/incubator/sftpgo/questions.yaml index c036bf52a4a..e9252c2bcb0 100644 --- a/charts/incubator/sftpgo/questions.yaml +++ b/charts/incubator/sftpgo/questions.yaml @@ -9,10 +9,6 @@ questions: # Include{replicas1} # Include{podSpec} -# Include{containerMain} -# Include{containerBasic} -# Include{containerAdvanced} - # Include{containerMain} - variable: env @@ -60,6 +56,9 @@ questions: schema: type: string default: "0" +# Include{containerBasic} +# Include{containerAdvanced} + # Include{containerConfig} # Include{serviceRoot} - variable: main diff --git a/charts/incubator/sftpgo/values.yaml b/charts/incubator/sftpgo/values.yaml index 9057b473952..56b3c9a26e2 100644 --- a/charts/incubator/sftpgo/values.yaml +++ b/charts/incubator/sftpgo/values.yaml @@ -3,34 +3,6 @@ image: repository: tccr.io/truecharts/sftpgo tag: v2.5.3@sha256:1a159663e5a9a2430edbf9b143fe8cab2998697bee9909598db32351c9de4f85 -workload: - main: - podSpec: - containers: - main: - env: - SFTPGO_COMMON__DEFENDER__ENABLED: "true" - SFTPGO_FTPD__BINDINGS__0__DEBUG: "0" - SFTPGO_FTPD__BINDINGS__0__FORCE_PASSIVE_IP: 10.0.0.10 - SFTPGO_FTPD__BINDINGS__0__PORT: "2121" - SFTPGO_FTPD__PASSIVE_PORT_RANGE__END: "50100" - SFTPGO_FTPD__PASSIVE_PORT_RANGE__START: "50000" - SFTPGO_WEBDAVD__BINDINGS__0__PORT: "10080" - -persistence: - backupdirectory: - enabled: true - mountPath: /srv/sftpgo/backups - configpath: - enabled: true - mountPath: /var/lib/sftpgo - data: - enabled: true - mountPath: /srv/sftpgo/data - shareaccess: - enabled: true - mountPath: /shareaccess - securityContext: container: runAsNonRoot: false @@ -78,6 +50,34 @@ service: protocol: tcp targetPort: 10080 +workload: + main: + podSpec: + containers: + main: + env: + SFTPGO_COMMON__DEFENDER__ENABLED: "true" + SFTPGO_FTPD__BINDINGS__0__DEBUG: "0" + SFTPGO_FTPD__BINDINGS__0__FORCE_PASSIVE_IP: 10.0.0.10 + SFTPGO_FTPD__BINDINGS__0__PORT: "2121" + SFTPGO_FTPD__PASSIVE_PORT_RANGE__END: "50100" + SFTPGO_FTPD__PASSIVE_PORT_RANGE__START: "50000" + SFTPGO_WEBDAVD__BINDINGS__0__PORT: "10080" + +persistence: + backupdirectory: + enabled: true + mountPath: /srv/sftpgo/backups + configpath: + enabled: true + mountPath: /var/lib/sftpgo + data: + enabled: true + mountPath: /srv/sftpgo/data + shareaccess: + enabled: true + mountPath: /shareaccess + portal: open: enabled: true