1
0
Fork 0

Support HTTPRoute redirect port and scheme

Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
Romain 2024-06-13 11:16:04 +02:00 committed by GitHub
parent 27af1fb478
commit 3ca667a3d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 1063 additions and 997 deletions

View file

@ -39,7 +39,11 @@ spec:
hostnames:
- "example.org"
rules:
- filters:
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: RequestRedirect
requestRedirect:
scheme: https

View file

@ -39,7 +39,11 @@ spec:
hostnames:
- "example.org"
rules:
- filters:
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: RequestRedirect
requestRedirect:
hostname: example.com

View file

@ -39,7 +39,11 @@ spec:
hostnames:
- "example.org"
rules:
- backendRefs:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: whoami
port: 80
weight: 1

View file

@ -37,7 +37,11 @@ spec:
- "foo.com"
- "bar.com"
rules:
- backendRefs:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: whoami
port: 80
weight: 1