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:
co-authored by
Stavros Kois
parent
0c16baa4b1
commit
51e8ef963d
@@ -22,7 +22,7 @@ sources:
|
|||||||
- https://github.com/traefik/traefik-helm-chart
|
- https://github.com/traefik/traefik-helm-chart
|
||||||
- https://traefik.io/
|
- https://traefik.io/
|
||||||
type: application
|
type: application
|
||||||
version: 13.0.0
|
version: 13.1.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- network
|
- network
|
||||||
|
|||||||
@@ -547,9 +547,9 @@ questions:
|
|||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
- variable: themePark
|
- variable: themePark
|
||||||
label: "theme.park"
|
label: "theme.park"
|
||||||
description: "Currently requires to enable Traefik Pilot. Until it's deprecated."
|
|
||||||
schema:
|
schema:
|
||||||
type: list
|
type: list
|
||||||
default: []
|
default: []
|
||||||
@@ -562,28 +562,32 @@ questions:
|
|||||||
attrs:
|
attrs:
|
||||||
- variable: name
|
- variable: name
|
||||||
label: "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:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
- variable: app
|
- variable: appName
|
||||||
label: "Application Name"
|
label: App Name
|
||||||
description: "Lower case, supported list https://docs.theme-park.dev/themes."
|
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:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
- variable: themeName
|
||||||
- variable: theme
|
label: Theme Name
|
||||||
label: "Theme Name"
|
description: Lower case, name of the theme to be applied.
|
||||||
description: "Lower case, supported lists https://docs.theme-park.dev/theme-options and https://docs.theme-park.dev/community-themes"
|
Go to <a href="https://docs.theme-park.dev/theme-options/">https://docs.theme-park.dev/theme-options/</a> to see supported themes.
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
required: true
|
||||||
- variable: baseUrl
|
- variable: baseUrl
|
||||||
label: "Base URL for theme"
|
label: Base URL
|
||||||
description: "https://theme-park.dev or a self hosted url"
|
description: Replace `https://theme-park.dev` URL for self-hosting reference.
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: "https://theme-park.dev"
|
required: true
|
||||||
|
default: https://theme-park.dev
|
||||||
|
|
||||||
- variable: service
|
- variable: service
|
||||||
group: "Networking and Services"
|
group: "Networking and Services"
|
||||||
|
|||||||
@@ -142,9 +142,9 @@ args:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{/* theme.park */}}
|
{{/* theme.park */}}
|
||||||
{{- if .Values.themePark}}
|
{{- if .Values.middlewares.themePark }}
|
||||||
- "--experimental.plugins.traefik-themepark.modulename=github.com/packruler/traefik-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 }}
|
||||||
{{/* End of theme.park */}}
|
{{/* End of theme.park */}}
|
||||||
{{- with .Values.additionalArguments }}
|
{{- with .Values.additionalArguments }}
|
||||||
|
|||||||
@@ -3,18 +3,18 @@
|
|||||||
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
{{- $namespace = "default" }}
|
{{- $namespace = "default" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $index, $middlewareData := .Values.middlewares.redirectScheme }}
|
{{- range $index, $middlewareData := .Values.middlewares.themePark }}
|
||||||
|
|
||||||
---
|
---
|
||||||
# Declaring the user list
|
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: Middleware
|
kind: Middleware
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $middlewareData.name }}
|
name: {{ $middlewareData.name }}
|
||||||
namespace: {{ $namespace }}
|
namespace: {{ $namespace }}
|
||||||
spec:
|
spec:
|
||||||
plugin:
|
plugin:
|
||||||
traefik-themepark:
|
traefik-themepark:
|
||||||
app: {{ $middlewareData.app }}
|
app: {{ $middlewareData.appName }}
|
||||||
theme: {{ $middlewareData.theme }}
|
theme: {{ $middlewareData.themeName }}
|
||||||
|
baseUrl: {{ $middlewareData.baseUrl }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -351,3 +351,9 @@ middlewares:
|
|||||||
|
|
||||||
portalhook:
|
portalhook:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
plugins:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/plugins-storage"
|
||||||
|
type: emptyDir
|
||||||
|
|||||||
Reference in New Issue
Block a user