[DNM] fix(Homarr) Add homarr 0.14 database mountPath (#14563)

This adds required changes for Homarr version 0.14:
https://github.com/ajnart/homarr/releases/tag/v0.14.0
Adds proper configuration for the database mount point in questions.yaml
and values.yaml

However, this container version of Homarr is currently broken as there
is some other issue, as it spits out errors for an incorrect Node Module
Version which might be an upstream issue and TRPCClientError, I can
provide logs if requested.

Edit: Noticed in the beginning it has errors about read-only filesystem

- [ ] ⚙️ 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?**
Tested by installing the helm chart on a standard k3s system and on
TrueNAS Scale with a custom catalog.

**✔️ 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

---

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Signed-off-by: tuxsudo <tuxsudo@tux.pizza>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
tuxsudo
2023-11-17 00:26:04 +02:00
committed by GitHub
co-authored by Stavros Kois
parent f37bdd40a6
commit fc7f8d9135
6 changed files with 49 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: "0.13.4"
appVersion: "0.14.1"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
@@ -18,7 +18,7 @@ name: homarr
sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/homarr
- https://github.com/ajnart/homarr
version: 6.0.12
version: 7.0.0
annotations:
truecharts.org/category: media
truecharts.org/SCALE-support: "true"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 18 KiB

+8
View File
@@ -53,6 +53,14 @@ questions:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
- variable: data
label: "App Database Storage"
description: "Stores the Application Database."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceList}
# Include{ingressRoot}
@@ -0,0 +1,10 @@
{{- define "homarr.secrets" -}}
{{- $secretName := (printf "%s-homarr-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }}
{{- $secret := randAlphaNum 32 -}}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) -}}
{{- $secret = index .data "NEXTAUTH_SECRET" | b64dec -}}
{{- end }}
enabled: true
data:
NEXTAUTH_SECRET: {{ $secret }}
{{- end -}}
+11 -1
View File
@@ -1 +1,11 @@
{{ include "tc.v1.common.loader.all" . }}
{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{/* Render secrets for homarr */}}
{{- $secrets := include "homarr.secrets" . | fromYaml -}}
{{- if $secrets -}}
{{- $_ := set .Values.secret "homarr-secrets" $secrets -}}
{{- end -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}
+18 -1
View File
@@ -1,13 +1,26 @@
image:
repository: tccr.io/truecharts/homarr
tag: v0.13.4@sha256:ac61ed7667bf4eb18bef09a735ecebf453e9e0dbf993dd73d25e526164bbf009
tag: v0.14.1@sha256:39ffbe38255ec98db1fb291bd13118c693de574832a48eb8b92344edbf09066a
pullPolicy: IfNotPresent
workload:
main:
podSpec:
containers:
main:
env:
NEXTAUTH_SECRET:
secretKeyRef:
name: homarr-secrets
key: NEXTAUTH_SECRET
service:
main:
ports:
main:
port: 10245
targetPort: 7575
persistence:
config:
enabled: true
@@ -15,6 +28,10 @@ persistence:
icons:
enabled: true
mountPath: "/app/public/icons"
data:
enabled: true
mountPath: "/data"
portal:
open:
enabled: true