fix(lancache-monolithic) fix lancache-prefill sidecar (#12702)

**Description**
Add battlenet param option
⚒️ Fixes  # <!--(issue)-->

**⚙️ 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?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ 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._
This commit is contained in:
Xstar97TheNoob
2023-09-22 18:44:19 -04:00
committed by GitHub
parent 7027255a00
commit abf16ea643
4 changed files with 46 additions and 5 deletions

View File

@@ -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

View File

@@ -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).

View File

@@ -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.

View File

@@ -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 }}"