Skip to content
Snippets Groups Projects
Commit 5661eb93 authored by Andri Joos's avatar Andri Joos :blush:
Browse files

add traefik middleware template

parent d625c31d
No related branches found
No related tags found
No related merge requests found
# https://doc.traefik.io/traefik/middlewares/overview/
{{- define "common.traefik.middleware" }}
apiVersion: {{ .Values.apiVersion | default "traefik.io/v1alpha1" }}
kind: Middleware
metadata:
name: {{ .Values.name | default "middleware" }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "common.variables.labels" . | nindent 4 }}
spec:
{{- .spec | default .Values.spec | toYaml | nindent 2 }}
---
{{- end }}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment