-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/contour: Add Support for custom headers on HTTPProxy level
Introduces support for request and repsonse headers on http proxy level Fixes: #5576 Signed-off-by: Devesh Kumar <vrshu112@gmail.com>
- Loading branch information
Showing
15 changed files
with
927 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## HTTPProxy: Allow custom host header on HttpProxy level. | ||
|
||
This Change allows you set custom host headers on httpProxy level, Please note headers are appended to requests/responses in the following order: weighted cluster level headers, route level headers, virtual host level headers and finally global level headers. | ||
|
||
#### Example | ||
```yaml | ||
apiVersion: projectcontour.io/v1 | ||
kind: HTTPProxy | ||
metadata: | ||
name: custom-host-header | ||
spec: | ||
fqdn: local.projectcontour.io | ||
requestHeadersPolicy: | ||
set: | ||
- name: x-header | ||
value: somevalue | ||
responseHeadersPolicy: | ||
set: | ||
- name: x-powered-by | ||
value: contour | ||
routes: | ||
- conditions: | ||
- prefix: / | ||
services: | ||
- name: s1 | ||
port: 80 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.