TransformationPolicy
Proto: transformation_policy.proto
Package: trafficcontrol.policy.gloo.solo.io
Types:
- TransformationPolicyReport
- TransformationPolicyReport.WorkspacesEntry
- TransformationPolicySpec
- TransformationPolicySpec.Config
- TransformationPolicySpec.Config.RequestTransformation
- TransformationPolicySpec.Config.ResponseTransformation
- TransformationPolicyStatus
TransformationPolicyReport
Field | Description |
---|---|
workspaces |
(repeated TransformationPolicyReport.WorkspacesEntry )The status of the resource in each workspace that it exists in. |
selectedRoutes |
(repeated common.gloo.solo.io.RouteReference )A list of references to all routes selected by the policy. |
TransformationPolicyReport.WorkspacesEntry
Field | Description |
---|---|
key |
(string ) |
value |
(common.gloo.solo.io.Report ) |
TransformationPolicySpec
TransformationPolicy is used to transform HTTP requests and responses matching selected routes. TransformationPolicies are applied at the Route level.
Field | Description |
---|---|
applyToRoutes |
(repeated common.gloo.solo.io.RouteSelector )Routes to apply the policy to. If empty, the policy applies to all workloads in the workspace. |
config |
(TransformationPolicySpec.Config )The details of the transformation policy to apply to the selected routes. |
TransformationPolicySpec.Config
Field | Description |
---|---|
phase |
(common.gloo.solo.io.PrioritizedPhase )Specify the phase to indicate where this policy should be applied relative to other policies. If no phase is specified, the default will be post AuthZ. |
request |
(TransformationPolicySpec.Config.RequestTransformation )Transformation to be applied before the request is sent to the upstream service. |
response |
(TransformationPolicySpec.Config.ResponseTransformation )Transform the response received from the upstream service before returning it to the client. |
TransformationPolicySpec.Config.RequestTransformation
Field | Description |
---|---|
recalculateRoutingDestination |
(bool )If the request was transformed such that it would match a different route, recalculate the routing destination (select a new route) based on the transformed content of the request. |
injaTemplate |
(envoy.api.v2.filter.http.TransformationTemplate )transform HTTP body and headers using Inja templates. For more information, see the Envoy transformation_filter.proto . |
TransformationPolicySpec.Config.ResponseTransformation
Configure response transformations for a selected route
Field | Description |
---|---|
injaTemplate |
(envoy.api.v2.filter.http.TransformationTemplate )transform response body and headers using Inja templates. For more information, see the Envoy transformation_filter.proto . |
TransformationPolicyStatus
Field | Description |
---|---|
common |
(common.gloo.solo.io.Status )The state and workspace conditions of the applied resource. |
numSelectedRoutes |
(uint32 )The number of routes selected by the policy. |