From 2d70a94a0108fe34ff55a20af74bac32858b29d2 Mon Sep 17 00:00:00 2001
From: Ethan Leisinger <770373+packruler@users.noreply.github.com>
Date: Sun, 21 Aug 2022 04:42:25 -0400
Subject: [PATCH] feat(traefik) update theme.park plugin to support addons
(#3521)
* Add support for theme-park addons in middleware
* update themepark plugin version
* update addon description
* Add some line breaks
* Bump chart version
---
charts/stable/traefik/Chart.yaml | 2 +-
charts/stable/traefik/questions.yaml | 19 +++++++++++++++++--
.../templates/middlewares/theme-park.yaml | 6 ++++++
charts/stable/traefik/values.yaml | 2 +-
4 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/charts/stable/traefik/Chart.yaml b/charts/stable/traefik/Chart.yaml
index d02a5128b37..0b7cf4dce6b 100644
--- a/charts/stable/traefik/Chart.yaml
+++ b/charts/stable/traefik/Chart.yaml
@@ -23,7 +23,7 @@ sources:
- https://github.com/traefik/traefik-helm-chart
- https://traefik.io/
type: application
-version: 13.1.10
+version: 13.2.0
annotations:
truecharts.org/catagories: |
- network
diff --git a/charts/stable/traefik/questions.yaml b/charts/stable/traefik/questions.yaml
index 9cddb01e646..1ae4ff17927 100644
--- a/charts/stable/traefik/questions.yaml
+++ b/charts/stable/traefik/questions.yaml
@@ -503,14 +503,14 @@ questions:
- variable: appName
label: App Name
description: Lower case, name of the app to be themed.
- Go to https://docs.theme-park.dev/themes/ to see supported apps.
+
Go to https://docs.theme-park.dev/themes/ to see supported apps.
schema:
type: string
required: true
- variable: themeName
label: Theme Name
description: Lower case, name of the theme to be applied.
- Go to https://docs.theme-park.dev/theme-options/ to see supported themes.
+
Go to https://docs.theme-park.dev/theme-options/ to see supported themes.
schema:
type: string
required: true
@@ -521,6 +521,21 @@ questions:
type: string
required: true
default: https://theme-park.dev
+ - variable: addons
+ label: Addons
+ schema:
+ type: list
+ default: []
+ items:
+ - variable: addonEntry
+ label: "Addon"
+ description: Currently only supports 'darker' and '4k-logo' for *arr apps.
+
Go to https://docs.theme-park.dev/themes/addons/ for Addon information.
+
Go to https://github.com/packruler/traefik-themepark for more context on plugin
+ schema:
+ type: string
+ required: true
+ default: ""
- variable: service
group: "Networking and Services"
label: "Configure Service Entrypoint"
diff --git a/charts/stable/traefik/templates/middlewares/theme-park.yaml b/charts/stable/traefik/templates/middlewares/theme-park.yaml
index 0e181a02d2d..92a4257e279 100644
--- a/charts/stable/traefik/templates/middlewares/theme-park.yaml
+++ b/charts/stable/traefik/templates/middlewares/theme-park.yaml
@@ -17,4 +17,10 @@ spec:
app: {{ $middlewareData.appName }}
theme: {{ $middlewareData.themeName }}
baseUrl: {{ $middlewareData.baseUrl }}
+ {{- if $middlewareData.addons }}
+ addons:
+ {{- range $middlewareData.addons }}
+ - {{ . | quote }}
+ {{- end }}
+ {{- end }}
{{- end }}
diff --git a/charts/stable/traefik/values.yaml b/charts/stable/traefik/values.yaml
index 612978e84b8..2c81db00fff 100644
--- a/charts/stable/traefik/values.yaml
+++ b/charts/stable/traefik/values.yaml
@@ -352,7 +352,7 @@ middlewares:
# theme: themenamehere
# -- https://theme-park.dev or a self hosted url
# baseUrl: https://theme-park.dev
- themeParkVersion: v1.1.0
+ themeParkVersion: v1.2.0
portalhook:
enabled: true