From 11005073f5ff9ef18d40aefdc5b8d74221a80abb Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:36:10 +0200 Subject: [PATCH] ofc, you dummy --- .../templates/lib/ingress/integrations/_traefik.tpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/library/common/templates/lib/ingress/integrations/_traefik.tpl b/library/common/templates/lib/ingress/integrations/_traefik.tpl index d2cf197b..e4f043b5 100644 --- a/library/common/templates/lib/ingress/integrations/_traefik.tpl +++ b/library/common/templates/lib/ingress/integrations/_traefik.tpl @@ -107,12 +107,10 @@ {{- $found = true -}} {{- $midNamespace = $p.namespace -}} {{- end -}} + {{- end -}} - {{- if not $found -}} - {{- fail (printf "Parsed:\n%s\n\nMiddlewares:\n%s\n\nmidName:%s\n\npName:%s\n\nfound:%s" (toYaml $parsedMiddlewares) (toYaml $middlewares) $mid.name $p.name $found) -}} - - {{- fail (printf "Ingress - Middleware [%s] is not defined in any namespace. Create the middleware first." $mid.name) -}} - {{- end -}} + {{- if not $found -}} + {{- fail (printf "Ingress - Middleware [%s] is not defined in any namespace. Create the middleware first." $mid.name) -}} {{- end -}} {{- end -}}