From abf16ea643207fcb0c98102068df9c9749f7faaa Mon Sep 17 00:00:00 2001 From: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> Date: Fri, 22 Sep 2023 18:44:19 -0400 Subject: [PATCH] fix(lancache-monolithic) fix lancache-prefill sidecar (#12702) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Add battlenet param option ⚒️ 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._ --- charts/stable/lancache-monolithic/Chart.yaml | 2 +- .../docs/installation_notes.md | 32 ++++++++++++++++--- .../stable/lancache-monolithic/questions.yaml | 14 ++++++++ charts/stable/lancache-monolithic/values.yaml | 3 ++ 4 files changed, 46 insertions(+), 5 deletions(-) diff --git a/charts/stable/lancache-monolithic/Chart.yaml b/charts/stable/lancache-monolithic/Chart.yaml index 1bcf83a88db..d0ac6b0f282 100644 --- a/charts/stable/lancache-monolithic/Chart.yaml +++ b/charts/stable/lancache-monolithic/Chart.yaml @@ -21,7 +21,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/lancache-monolithic - https://github.com/lancachenet/monolithic type: application -version: 5.1.0 +version: 5.1.1 annotations: truecharts.org/catagories: | - gaming diff --git a/charts/stable/lancache-monolithic/docs/installation_notes.md b/charts/stable/lancache-monolithic/docs/installation_notes.md index 4031886d3da..8afc12f600e 100644 --- a/charts/stable/lancache-monolithic/docs/installation_notes.md +++ b/charts/stable/lancache-monolithic/docs/installation_notes.md @@ -20,10 +20,34 @@ Like TrueNAS Scale WebUI. ## Lancache-Prefill -Basic setup guides from upstream. +How to use lancache-prefill sidecar -- BattleNet [docs](https://github.com/tpill90/battlenet-lancache-prefill#initial-setup) +:::info -- Steam [docs](https://github.com/tpill90/steam-lancache-prefill#initial-setup) +Shell into the main pod, not the _prefill_ pod. -- Epic [docs](https://github.com/tpill90/epic-lancache-prefill#initial-setup) +::: + +### BattleNet + +```shell +cd /data/prefill/BattleNetPrefill/ && ./BattleNetPrefill -h +``` + +cron param options [list](https://tpill90.github.io/battlenet-lancache-prefill/detailed-command-usage/Prefill/#options). + +### Epic + +```shell +cd /data/prefill/EpicPrefill/ && ./EpicPrefill -h +``` + +cron param options [list](https://tpill90.github.io/epic-lancache-prefill/Detailed-Command-Usage/#prefill). + +### Steam + +```shell +cd /data/prefill/SteamPrefill/ && ./SteamPrefill -h +``` + +cron param options [list](https://tpill90.github.io/steam-lancache-prefill/detailed-command-usage/Prefill/#options). diff --git a/charts/stable/lancache-monolithic/questions.yaml b/charts/stable/lancache-monolithic/questions.yaml index e428ef03e4a..b56d11eaded 100644 --- a/charts/stable/lancache-monolithic/questions.yaml +++ b/charts/stable/lancache-monolithic/questions.yaml @@ -123,6 +123,20 @@ questions: default: true show_subquestions_if: true subquestions: + - variable: params + label: Params + description: list of parameters for BattleNetPrefill. + schema: + type: list + default: [] + required: true + items: + - variable: param + label: Param + schema: + type: string + required: true + default: "" - variable: cron label: cron description: Set your cron schedule for the BattleNetPrefill. diff --git a/charts/stable/lancache-monolithic/values.yaml b/charts/stable/lancache-monolithic/values.yaml index 899278b0d82..ebda8542a36 100644 --- a/charts/stable/lancache-monolithic/values.yaml +++ b/charts/stable/lancache-monolithic/values.yaml @@ -52,6 +52,8 @@ prefill: # BattleNet battlenet: enabled: true + # https://tpill90.github.io/battlenet-lancache-prefill/detailed-command-usage/Prefill/#options + params: [] cron: "0 5 * * *" # Epic epic: @@ -112,6 +114,7 @@ workload: CRON_SCHED_GLOBAL: "{{ .Values.prefill.default_cron }}" # BattleNet ENABLE_BN: "{{ .Values.prefill.battlenet.enabled }}" + PREFILL_PARAMS_BN: '{{ join " " .Values.prefill.battlenet.params }}' CRON_SCHED_BN: "{{ .Values.prefill.battlenet.cron }}" # Epic ENABLE_EPIC: "{{ .Values.prefill.epic.enabled }}"