feat(traefik) update theme.park integration (#3246)
* Add support for traefik-themepark plugin * move plugin config to middleware section * Move theme-park enable toggle to middleware section * Fix enableThemePark variable reference * Remove Traefik Pilot dependency * Minor question updates * Fix merge of updated code * Make links clickable * Update middlware file structure * Remove enable theme.park checkbox * Update charts/stable/traefik/templates/middlewares/theme-park.yaml Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * update enableThemePark reference * Update how baseUrl is handled * Remove crd update Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
@@ -22,7 +22,7 @@ sources:
|
||||
- https://github.com/traefik/traefik-helm-chart
|
||||
- https://traefik.io/
|
||||
type: application
|
||||
version: 13.0.0
|
||||
version: 13.1.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- network
|
||||
|
||||
@@ -547,9 +547,9 @@ questions:
|
||||
type: string
|
||||
required: true
|
||||
default: ""
|
||||
|
||||
- variable: themePark
|
||||
label: "theme.park"
|
||||
description: "Currently requires to enable Traefik Pilot. Until it's deprecated."
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
@@ -562,28 +562,32 @@ questions:
|
||||
attrs:
|
||||
- variable: name
|
||||
label: "Name"
|
||||
description: This is a 3rd party plugin and not maintained by TrueCharts,
|
||||
for more information go to <a href="https://github.com/packruler/traefik-themepark">traefik-themepark</a>
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: app
|
||||
label: "Application Name"
|
||||
description: "Lower case, supported list https://docs.theme-park.dev/themes."
|
||||
- variable: appName
|
||||
label: App Name
|
||||
description: Lower case, name of the app to be themed.
|
||||
Go to <a href="https://docs.theme-park.dev/themes/">https://docs.theme-park.dev/themes/</a> to see supported apps.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: ""
|
||||
- variable: theme
|
||||
label: "Theme Name"
|
||||
description: "Lower case, supported lists https://docs.theme-park.dev/theme-options and https://docs.theme-park.dev/community-themes"
|
||||
- variable: themeName
|
||||
label: Theme Name
|
||||
description: Lower case, name of the theme to be applied.
|
||||
Go to <a href="https://docs.theme-park.dev/theme-options/">https://docs.theme-park.dev/theme-options/</a> to see supported themes.
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
required: true
|
||||
- variable: baseUrl
|
||||
label: "Base URL for theme"
|
||||
description: "https://theme-park.dev or a self hosted url"
|
||||
label: Base URL
|
||||
description: Replace `https://theme-park.dev` URL for self-hosting reference.
|
||||
schema:
|
||||
type: string
|
||||
default: "https://theme-park.dev"
|
||||
required: true
|
||||
default: https://theme-park.dev
|
||||
|
||||
- variable: service
|
||||
group: "Networking and Services"
|
||||
|
||||
@@ -142,9 +142,9 @@ args:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{/* theme.park */}}
|
||||
{{- if .Values.themePark}}
|
||||
{{- if .Values.middlewares.themePark }}
|
||||
- "--experimental.plugins.traefik-themepark.modulename=github.com/packruler/traefik-themepark"
|
||||
- "--experimental.plugins.traefik-themepark.version={{ .Values.themeParkVersion }}"
|
||||
- "--experimental.plugins.traefik-themepark.version={{ .Values.middlewares.themeParkVersion }}"
|
||||
{{- end }}
|
||||
{{/* End of theme.park */}}
|
||||
{{- with .Values.additionalArguments }}
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||
{{- $namespace = "default" }}
|
||||
{{- end }}
|
||||
{{- range $index, $middlewareData := .Values.middlewares.redirectScheme }}
|
||||
{{- range $index, $middlewareData := .Values.middlewares.themePark }}
|
||||
|
||||
---
|
||||
# Declaring the user list
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: {{ $middlewareData.name }}
|
||||
namespace: {{ $namespace }}
|
||||
spec:
|
||||
plugin:
|
||||
traefik-themepark:
|
||||
app: {{ $middlewareData.app }}
|
||||
theme: {{ $middlewareData.theme }}
|
||||
plugin:
|
||||
traefik-themepark:
|
||||
app: {{ $middlewareData.appName }}
|
||||
theme: {{ $middlewareData.themeName }}
|
||||
baseUrl: {{ $middlewareData.baseUrl }}
|
||||
{{- end }}
|
||||
|
||||
@@ -351,3 +351,9 @@ middlewares:
|
||||
|
||||
portalhook:
|
||||
enabled: true
|
||||
|
||||
persistence:
|
||||
plugins:
|
||||
enabled: true
|
||||
mountPath: "/plugins-storage"
|
||||
type: emptyDir
|
||||
|
||||
Reference in New Issue
Block a user