-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Traefik Proxy)!: move redirectTo => redirections #1301
Conversation
traefik/templates/_podtemplate.tpl
Outdated
{{- end }} | ||
{{- if $config.redirections }} | ||
{{- with $config.redirections.entryPoint }} | ||
{{- if and (eq .to "websecure") (ne .scheme "https") }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't assume users didn't specify:
ports:
websecure:
tls:
enabled: false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you just check if the port on which we redirect has tls.enabled: true
?
We might also want to check if the to
port exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Rémi BUISSON <remi-buisson@orange.fr>
9f5f756
to
307de47
Compare
Signed-off-by: Vijayakumar Ravi <im@vijayakumar.xyz>
What does this PR do?
Refactor
redirectTo
section inports
with upstream Traefik Proxy syntax.Before
After
Motivation
Fixes #1288
More
make test
and all the tests passed