2025-08-24 00:09:37 +03:00

13 lines
472 B
Smarty

{{- define "tc.v1.common.class.traefik.middleware.retry" -}}
{{- $objectData := .objectData -}}
{{- $rootCtx := .rootCtx -}}
{{- $mw := $objectData.data -}}
{{- if not $mw.attempts -}}
{{- fail "Middleware (retry) - Expected [attempts] to be set" -}}
{{- end }}
retry:
attempts: {{ $mw.attempts }}
{{- include "tc.v1.common.class.traefik.middleware.helper.int" (dict "key" "initialInterval" "value" $mw.initialInterval) | nindent 4 }}
{{- end -}}