Skip to content

Commit

Permalink
missing translation from CTP to IR
Browse files Browse the repository at this point in the history
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
  • Loading branch information
evacchi committed May 30, 2024
1 parent 44f98be commit d792c7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/gatewayapi/clienttrafficpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,10 @@ func translateListenerHeaderSettings(headerSettings *egv1a1.HeaderSettings, http
return
}
httpIR.Headers = &ir.HeaderSettings{
EnableEnvoyHeaders: ptr.Deref(headerSettings.EnableEnvoyHeaders, false),
WithUnderscoresAction: ir.WithUnderscoresAction(ptr.Deref(headerSettings.WithUnderscoresAction, egv1a1.WithUnderscoresActionRejectRequest)),
PreserveXRequestID: ptr.Deref(headerSettings.PreserveXRequestID, false),
EnableEnvoyHeaders: ptr.Deref(headerSettings.EnableEnvoyHeaders, false),
DisableRateLimitHeaders: ptr.Deref(headerSettings.DisableRateLimitHeaders, false),
WithUnderscoresAction: ir.WithUnderscoresAction(ptr.Deref(headerSettings.WithUnderscoresAction, egv1a1.WithUnderscoresActionRejectRequest)),
PreserveXRequestID: ptr.Deref(headerSettings.PreserveXRequestID, false),
}

if headerSettings.XForwardedClientCert != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ xdsIR:
- address: 0.0.0.0
headers:
enableEnvoyHeaders: true
disableRateLimitHeaders: true
withUnderscoresAction: RejectRequest
hostnames:
- '*'
Expand All @@ -141,6 +142,7 @@ xdsIR:
- address: 0.0.0.0
headers:
enableEnvoyHeaders: true
disableRateLimitHeaders: true
withUnderscoresAction: RejectRequest
hostnames:
- '*'
Expand Down

0 comments on commit d792c7c

Please sign in to comment.