Add traefik middleware to templates

This commit is contained in:
Nikolai Rodionov 2024-09-18 15:31:27 +02:00
parent 3e31d1ff5e
commit 8eec7a3ae3
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 19 additions and 0 deletions

View File

@ -54,6 +54,13 @@ templates:
alias: traefik alias: traefik
values: values:
- '{{ requiredEnv "PWD" }}/values/common/values.tcp-route.yaml' - '{{ requiredEnv "PWD" }}/values/common/values.tcp-route.yaml'
ext-traefik-middleware:
dependencies:
- chart: bedag/raw
version: 2.0.0
alias: middleware
values:
- '{{ requiredEnv "PWD" }}/values/common/values.middleware.yaml'
ext-istio-resource: ext-istio-resource:
dependencies: dependencies:
- chart: bedag/raw - chart: bedag/raw

View File

@ -0,0 +1,12 @@
middleware:
templates:
- |
{{ range .Values.middlewares }}
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: {{ .name }}
spec:
{{ .spec | toYaml | nindent 4 }}
{{- end }}