feat(treafik): Adds theme.park middleware and remove Traefik pilot (#3245)
* chore(traefik): add deprecation pilot notice * feat(treafik): Adds theme.park middleware and deprecation notice on pilot * Update charts/stable/traefik/templates/middlewares/theme-park.yaml * just remove pilot * Apply suggestions from code review Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
co-authored by
Kjeld Schouten-Lebbing
parent
c0987a50b8
commit
721ec70d30
@@ -141,12 +141,12 @@ args:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.pilot.enabled }}
|
||||
- "--pilot.token={{ .Values.pilot.token }}"
|
||||
{{- end }}
|
||||
{{- if hasKey .Values.pilot "dashboard" }}
|
||||
- "--pilot.dashboard={{ .Values.pilot.dashboard }}"
|
||||
{{/* theme.park */}}
|
||||
{{- if .Values.themePark}}
|
||||
- "--experimental.plugins.traefik-themepark.modulename=github.com/packruler/traefik-themepark"
|
||||
- "--experimental.plugins.traefik-themepark.version={{ .Values.themeParkVersion }}"
|
||||
{{- end }}
|
||||
{{/* End of theme.park */}}
|
||||
{{- with .Values.additionalArguments }}
|
||||
{{- range . }}
|
||||
- {{ . | quote }}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{{- $values := .Values }}
|
||||
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||
{{- $namespace = "default" }}
|
||||
{{- end }}
|
||||
{{- range $index, $middlewareData := .Values.middlewares.redirectScheme }}
|
||||
|
||||
---
|
||||
# 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 }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user