From 937403c4a5fba603b99acd4e88d221eab7c46d54 Mon Sep 17 00:00:00 2001 From: Cullen Murphy Date: Mon, 9 May 2022 02:30:01 -0500 Subject: [PATCH] fix (trafik) IngressClass and namespace configuration (#2635) * Remove unused rbac.namespaced flag * Pass ingressClass name to Traefik if enabled * Update charts/core/traefik/templates/_args.tpl Co-authored-by: Kjeld Schouten-Lebbing --- charts/core/traefik/templates/_args.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/core/traefik/templates/_args.tpl b/charts/core/traefik/templates/_args.tpl index 95487d14a33..a4e1578b9fd 100644 --- a/charts/core/traefik/templates/_args.tpl +++ b/charts/core/traefik/templates/_args.tpl @@ -63,6 +63,9 @@ args: - "--providers.kubernetesingress.namespaces={{ template "providers.kubernetesIngress.namespaces" . }}" {{- end }} {{- end }} + {{- if .Values.ingressClass.enabled }} + - "--providers.kubernetesingress.ingressclass="{{ .Release.Name }} + {{- end }} {{- range $entrypoint, $config := $ports }} {{/* add args for forwardedHeaders support */}} {{- if $config.forwardedHeaders.enabled }}