diff --git a/charts/stable/homarr/Chart.yaml b/charts/stable/homarr/Chart.yaml index a52429ccc6b..d9023d9aaf1 100644 --- a/charts/stable/homarr/Chart.yaml +++ b/charts/stable/homarr/Chart.yaml @@ -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" diff --git a/charts/stable/homarr/icon.png b/charts/stable/homarr/icon.png index fc840a623e8..aa7f2f2bf9c 100644 Binary files a/charts/stable/homarr/icon.png and b/charts/stable/homarr/icon.png differ diff --git a/charts/stable/homarr/questions.yaml b/charts/stable/homarr/questions.yaml index 83201cf7883..9565555e1cb 100644 --- a/charts/stable/homarr/questions.yaml +++ b/charts/stable/homarr/questions.yaml @@ -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} diff --git a/charts/stable/homarr/templates/_secrets.tpl b/charts/stable/homarr/templates/_secrets.tpl new file mode 100644 index 00000000000..38f6eaf79b8 --- /dev/null +++ b/charts/stable/homarr/templates/_secrets.tpl @@ -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 -}} diff --git a/charts/stable/homarr/templates/common.yaml b/charts/stable/homarr/templates/common.yaml index b51394e00a4..becd9246081 100644 --- a/charts/stable/homarr/templates/common.yaml +++ b/charts/stable/homarr/templates/common.yaml @@ -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" . }} diff --git a/charts/stable/homarr/values.yaml b/charts/stable/homarr/values.yaml index 4ee010ba103..4e91913005a 100644 --- a/charts/stable/homarr/values.yaml +++ b/charts/stable/homarr/values.yaml @@ -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