From 0c157e70f2f20316ee035b785bdb99c2837d1a18 Mon Sep 17 00:00:00 2001 From: StevenMcElligott <89483932+StevenMcElligott@users.noreply.github.com> Date: Sat, 17 Feb 2024 05:18:32 -0500 Subject: [PATCH] feat(outline): Add local storage + persistance (#18257) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** App seems to be missing persistence and there's a note for Docker to add local storage -> https://docs.getoutline.com/s/hosting/doc/file-storage-N4M0T6Ypu7 so might as well do it right ⚒️ Fixes #18245 **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 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:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 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 - [ ] ⬆️ 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 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: Kjeld Schouten Co-authored-by: Kjeld Schouten --- charts/stable/outline/Chart.yaml | 6 +++--- charts/stable/outline/questions.yaml | 27 +++++++++++++++++++++++++++ charts/stable/outline/values.yaml | 6 ++++++ 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/charts/stable/outline/Chart.yaml b/charts/stable/outline/Chart.yaml index b0bb97990c4..79efa34bd3e 100644 --- a/charts/stable/outline/Chart.yaml +++ b/charts/stable/outline/Chart.yaml @@ -10,7 +10,7 @@ apiVersion: v2 appVersion: 0.74.0 dependencies: - name: common - version: 17.2.30 + version: 17.3.9 repository: oci://tccr.io/truecharts condition: "" alias: "" @@ -18,7 +18,7 @@ dependencies: import-values: [] - name: redis version: 11.1.21 - repository: https://deps.truecharts.org + repository: oci://tccr.io/truecharts condition: redis.enabled alias: "" tags: [] @@ -41,4 +41,4 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/outline - https://hub.docker.com/r/outlinewiki/outline type: application -version: 11.1.16 +version: 11.2.0 diff --git a/charts/stable/outline/questions.yaml b/charts/stable/outline/questions.yaml index d92290f9a0e..179bebc4ade 100644 --- a/charts/stable/outline/questions.yaml +++ b/charts/stable/outline/questions.yaml @@ -68,6 +68,24 @@ questions: schema: type: string default: "" + - variable: localstorage + label: "Enable Local Storage + Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: FILE_STORAGE + label: "Enable Local File Storage" + description: Set local to enable local file storage bypassing Minio or S3 + schema: + type: string + default: "local" + - variable: FILE_STORAGE_MAX_UPLOAD_SIZE + label: "Local File Storage Max Upload Size" + schema: + type: int + default: "26214400" - variable: slackenabled label: "Enable Slack Settings" schema: @@ -319,6 +337,15 @@ questions: # Include{serviceExpertRoot} # Include{serviceExpert} # Include{serviceList} +# Include{persistenceRoot} + - variable: data + label: "App Data Storage" + description: "Stores the Application's Data." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} # Include{persistenceList} # Include{ingressRoot} - variable: main diff --git a/charts/stable/outline/values.yaml b/charts/stable/outline/values.yaml index 8ba1665c596..e1227722b6b 100644 --- a/charts/stable/outline/values.yaml +++ b/charts/stable/outline/values.yaml @@ -75,6 +75,8 @@ workload: WEB_CONCURRENCY: 1 MAXIMUM_IMPORT_SIZE: 5120000 DEFAULT_LANGUAGE: "en_US" + FILE_STORAGE: "" + FILE_STORAGE_UPLOAD_MAX_SIZE: "" # TEAM_LOGO: "" # COLLABORATION_URL: "" # SLACK_KEY: "" @@ -130,3 +132,7 @@ workload: secretKeyRef: name: secrets key: UTILS_SECRET +persistence: + data: + enabled: true + mountPath: /var/lib/outline/data