From c374bf670df4fa8c8999a7b82535f6e51febed08 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sun, 26 Nov 2023 00:10:37 +0100 Subject: [PATCH] fix(traefik): fix rendering error --- charts/enterprise/traefik/Chart.yaml | 2 +- charts/enterprise/traefik/templates/_ingressroute.tpl | 6 +++--- charts/enterprise/traefik/templates/_tlsoptions.tpl | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/charts/enterprise/traefik/Chart.yaml b/charts/enterprise/traefik/Chart.yaml index 528f087304f..c2ea971bb42 100644 --- a/charts/enterprise/traefik/Chart.yaml +++ b/charts/enterprise/traefik/Chart.yaml @@ -23,7 +23,7 @@ sources: - https://github.com/traefik/traefik-helm-chart - https://traefik.io/ type: application -version: 22.0.2 +version: 22.0.3 annotations: truecharts.org/category: network truecharts.org/SCALE-support: "true" diff --git a/charts/enterprise/traefik/templates/_ingressroute.tpl b/charts/enterprise/traefik/templates/_ingressroute.tpl index bf235761f80..8e1d0f4e3f9 100644 --- a/charts/enterprise/traefik/templates/_ingressroute.tpl +++ b/charts/enterprise/traefik/templates/_ingressroute.tpl @@ -2,8 +2,8 @@ {{- define "traefik.ingressRoute" -}} {{ if .Values.ingressRoute.dashboard.enabled }} -{{- $ingressRouteLabels := .Values.ingressRoute.dashboard.labels -}} -{{- $ingressRouteAnnotations := .Values.ingressRoute.dashboard.annotations -}} +{{- $ingressRouteLabels := .Values.ingressRoute.dashboard.labels }} +{{- $ingressRouteAnnotations := .Values.ingressRoute.dashboard.annotations }} --- apiVersion: traefik.io/v1alpha1 @@ -31,4 +31,4 @@ spec: - name: api@internal kind: TraefikService {{ end }} -{{- end -}} +{{- end }} diff --git a/charts/enterprise/traefik/templates/_tlsoptions.tpl b/charts/enterprise/traefik/templates/_tlsoptions.tpl index 4194e513cd3..163b5364421 100644 --- a/charts/enterprise/traefik/templates/_tlsoptions.tpl +++ b/charts/enterprise/traefik/templates/_tlsoptions.tpl @@ -1,6 +1,7 @@ {{/* Define the tlsOptions */}} {{- define "traefik.tlsOptions" -}} {{- range $name, $config := .Values.tlsOptions }} + --- apiVersion: traefik.io/v1alpha1 kind: TLSOption @@ -9,4 +10,4 @@ metadata: spec: {{- toYaml $config | nindent 2 }} {{- end }} -{{- end -}} +{{- end }}