From 2ce3dfbd877e3c06204fc75259bd2d90780354f4 Mon Sep 17 00:00:00 2001 From: Andri Joos <andri@joos.io> Date: Sun, 2 Feb 2025 16:15:00 +0100 Subject: [PATCH] add annotations & labels to traefik ingressroute template --- common/templates/traefik/_ingressroute.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/templates/traefik/_ingressroute.tpl b/common/templates/traefik/_ingressroute.tpl index c5773fc..1b57604 100644 --- a/common/templates/traefik/_ingressroute.tpl +++ b/common/templates/traefik/_ingressroute.tpl @@ -4,6 +4,12 @@ apiVersion: {{ .Values.apiVersion | default "traefik.io/v1alpha1" }} kind: IngressRoute metadata: name: {{ .Values.name | default "ingress-route" }} + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} + labels: + {{- include "common.variables.labels" . | nindent 4 }} spec: {{- with .Values.entryPoints }} entryPoints: -- GitLab