From ab16ddc14ca6c7edb5a1aff0a49c754c4dbe40b4 Mon Sep 17 00:00:00 2001 From: Simon Hofman Date: Sun, 24 Sep 2023 13:13:34 +0200 Subject: [PATCH] feat(immich) add support for external library (#12880) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Immich provides the ability to add a readonly library instead of uploading each photo. I just added an additional persistance config that gives the ability to mount into main and microservices simultaneously. Here is the doc from immich for that feature (https://immich.app/docs/features/libraries) ⚒️ Fixes (https://github.com/truecharts/charts/issues/10202) **⚙️ Type of change** - [x] ⚙️ 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:** - [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 - [x] ⚠️ 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` --- charts/stable/immich/Chart.yaml | 2 +- charts/stable/immich/questions.yaml | 8 ++++++++ charts/stable/immich/values.yaml | 9 +++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/charts/stable/immich/Chart.yaml b/charts/stable/immich/Chart.yaml index 5928925ed23..08f1d04b439 100644 --- a/charts/stable/immich/Chart.yaml +++ b/charts/stable/immich/Chart.yaml @@ -22,7 +22,7 @@ name: immich sources: - https://github.com/truecharts/charts/tree/master/charts/stable/immich - https://github.com/immich-app/immich -version: 8.0.16 +version: 8.1.16 annotations: truecharts.org/catagories: | - media diff --git a/charts/stable/immich/questions.yaml b/charts/stable/immich/questions.yaml index 1720601c3f3..5a4d7969477 100644 --- a/charts/stable/immich/questions.yaml +++ b/charts/stable/immich/questions.yaml @@ -136,6 +136,14 @@ questions: additional_attrs: true type: dict attrs: +# Include{persistenceBasic} + - variable: externallibrary + label: App External Library Storage + description: Stores the External Library. + schema: + additional_attrs: true + type: dict + attrs: # Include{persistenceBasic} # Include{persistenceList} # Include{ingressRoot} diff --git a/charts/stable/immich/values.yaml b/charts/stable/immich/values.yaml index 66817ba7ebb..e02de2407ad 100644 --- a/charts/stable/immich/values.yaml +++ b/charts/stable/immich/values.yaml @@ -168,6 +168,15 @@ persistence: main: {} microservices: microservices: {} + externallibrary: + enabled: true + mountPath: /media + targetSelector: + # Main pod/container is server + main: + main: {} + microservices: + microservices: {} cnpg: main: