fix(traefik): fix rendering error

This commit is contained in:
Kjeld Schouten 2023-11-26 00:10:37 +01:00
parent bf3efe0fe5
commit c374bf670d
3 changed files with 6 additions and 5 deletions

View File

@ -23,7 +23,7 @@ sources:
- https://github.com/traefik/traefik-helm-chart - https://github.com/traefik/traefik-helm-chart
- https://traefik.io/ - https://traefik.io/
type: application type: application
version: 22.0.2 version: 22.0.3
annotations: annotations:
truecharts.org/category: network truecharts.org/category: network
truecharts.org/SCALE-support: "true" truecharts.org/SCALE-support: "true"

View File

@ -2,8 +2,8 @@
{{- define "traefik.ingressRoute" -}} {{- define "traefik.ingressRoute" -}}
{{ if .Values.ingressRoute.dashboard.enabled }} {{ if .Values.ingressRoute.dashboard.enabled }}
{{- $ingressRouteLabels := .Values.ingressRoute.dashboard.labels -}} {{- $ingressRouteLabels := .Values.ingressRoute.dashboard.labels }}
{{- $ingressRouteAnnotations := .Values.ingressRoute.dashboard.annotations -}} {{- $ingressRouteAnnotations := .Values.ingressRoute.dashboard.annotations }}
--- ---
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
@ -31,4 +31,4 @@ spec:
- name: api@internal - name: api@internal
kind: TraefikService kind: TraefikService
{{ end }} {{ end }}
{{- end -}} {{- end }}

View File

@ -1,6 +1,7 @@
{{/* Define the tlsOptions */}} {{/* Define the tlsOptions */}}
{{- define "traefik.tlsOptions" -}} {{- define "traefik.tlsOptions" -}}
{{- range $name, $config := .Values.tlsOptions }} {{- range $name, $config := .Values.tlsOptions }}
--- ---
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: TLSOption kind: TLSOption
@ -9,4 +10,4 @@ metadata:
spec: spec:
{{- toYaml $config | nindent 2 }} {{- toYaml $config | nindent 2 }}
{{- end }} {{- end }}
{{- end -}} {{- end }}