Skip to content

Commit

Permalink
Merge branch 'master' into fix/tracing-hub
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 authored Jan 28, 2025
2 parents 42e1bc1 + 3c204ea commit 60f6d88
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions traefik/templates/_podtemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,8 @@
{{- with .priority }}
- "--entryPoints.{{ $entrypoint }}.http.redirections.entryPoint.priority={{ . }}"
{{- end }}
{{- with .permanent }}
- "--entryPoints.{{ $entrypoint }}.http.redirections.entryPoint.permanent={{ . }}"
{{- if hasKey . "permanent" }}
- "--entryPoints.{{ $entrypoint }}.http.redirections.entryPoint.permanent={{ .permanent }}"
{{- end }}
{{- end }}
{{- end }}
Expand Down
15 changes: 15 additions & 0 deletions traefik/tests/deployment-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,18 @@ tests:
- contains:
path: spec.template.spec.containers[0].args
content: "--entryPoints.web.http.redirections.entryPoint.permanent=true"
- it: should have permanent http redirections disabled, when enabled with redirectTo and permanent set to false
set:
ports:
web:
redirections:
entryPoint:
to: websecure
scheme: https
permanent: false
websecure:
exposedPort: 443
asserts:
- contains:
path: spec.template.spec.containers[0].args
content: "--entryPoints.web.http.redirections.entryPoint.permanent=false"

0 comments on commit 60f6d88

Please sign in to comment.