Skip to content

Commit

Permalink
inside a with statement, need to use proper context
Browse files Browse the repository at this point in the history
  • Loading branch information
davhdavh authored Aug 13, 2023
1 parent 0b4f193 commit 05577ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traefik/templates/_podtemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
{{- if $config }}
- "--entrypoints.{{$name}}.address=:{{ $config.port }}/{{ default "tcp" $config.protocol | lower }}"
{{- with $config.asDefault }}
{{- if semverCompare "<3.0.0-0" (include "imageVersion" .) }}
{{- if semverCompare "<3.0.0-0" (include "imageVersion" $) }}
{{- fail "ERROR: Default entrypoints are only available on Traefik v3. Please set `image.tag` to `v3.x`." }}
{{- end }}
- "--entrypoints.{{$name}}.asDefault={{ . }}"
Expand Down

0 comments on commit 05577ef

Please sign in to comment.