You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of the Traefik's Helm Chart are you using?
20.7.0
What version of Traefik are you using?
v2.9.6
What did you do?
I don't have .Values.metrics.prometheus.service set in my values file (so it should be disabled by default)
I execute helm template --name-template=[name that contains more than 50 chars] .
What did you see instead?
Error: execution error at (ingress-traefik/charts/traefik/templates/service-metrics.yaml:7:6): ERROR: Cannot create a metrics service when name contains more than 50 characters
What is your environment & configuration?
I use the default Traefik values file + some override but not on for the metrics part.
Additional Information
If i move the
{{- if .Values.metrics.prometheus }}{{- if .Values.metrics.prometheus.service }}{{- if (and (.Values.metrics.prometheus.service).enabled (not .Values.hub.enabled)) -}}
before
{{- $fullname := include "traefik.fullname" . }}{{- if ge (len $fullname) 50 }}{{- fail "ERROR: Cannot create a metrics service when name contains more than 50 characters" }}{{- end }}
Welcome!
What version of the Traefik's Helm Chart are you using?
20.7.0
What version of Traefik are you using?
v2.9.6
What did you do?
I don't have
.Values.metrics.prometheus.service
set in my values file (so it should be disabled by default)I execute
helm template --name-template=[name that contains more than 50 chars] .
What did you see instead?
Error: execution error at (ingress-traefik/charts/traefik/templates/service-metrics.yaml:7:6): ERROR: Cannot create a metrics service when name contains more than 50 characters
What is your environment & configuration?
I use the default Traefik values file + some override but not on for the metrics part.
Additional Information
If i move the
before
on https://github.com/traefik/traefik-helm-chart/blob/master/traefik/templates/service-metrics.yaml , then it works again.
The text was updated successfully, but these errors were encountered: