{{- $version := include "imageVersion" $ }} {{- $ingressNamespaces := concat (include "traefik.namespace" . | list) .Values.providers.kubernetesIngress.namespaces -}} {{- $CRDNamespaces := concat (include "traefik.namespace" . | list) .Values.providers.kubernetesCRD.namespaces -}} {{- $allNamespaces := sortAlpha (uniq (concat $ingressNamespaces $CRDNamespaces)) -}} {{- if and .Values.rbac.enabled .Values.rbac.namespaced -}} {{- range $allNamespaces }} --- kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ template "traefik.fullname" $ }} namespace: {{ . }} labels: {{- include "traefik.labels" $ | nindent 4 }} rules: {{- if (semverCompare "