File tree Expand file tree Collapse file tree
internal/gatewayapi/testdata
test/helm/gateway-crds-helm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ envoyExtensionPolicies:
66 namespace : default
77 spec :
88 lua :
9- - type : ValueRef
10- filterContext :
9+ - filterContext :
1110 token_header : x-session-token
11+ type : ValueRef
1212 valueRef :
1313 group : v1
1414 kind : ConfigMap
@@ -581,9 +581,9 @@ xdsIR:
581581 function envoy_on_response(response_handle)
582582 response_handle:logWarn('Goodbye.')
583583 end
584- FilterContext:
585- token_header: x-session-token
586584 Name: envoyextensionpolicy/default/policy-for-http-route/lua/0
585+ filterContext:
586+ token_header: x-session-token
587587 hostname : www.example.com
588588 isHTTP2 : false
589589 metadata :
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ envoyExtensionPolicies:
77 namespace : default
88 spec :
99 lua :
10- - inline : function envoy_on_response(response_handle) response_handle:logWarn('Goodbye.')
11- end
12- filterContext :
10+ - filterContext :
1311 mode : strict
1412 token_header : x-api-key
13+ inline : function envoy_on_response(response_handle) response_handle:logWarn('Goodbye.')
14+ end
1515 type : Inline
1616 targetRef :
1717 group : gateway.networking.k8s.io
@@ -281,10 +281,10 @@ xdsIR:
281281 luas :
282282 - Code : function envoy_on_response(response_handle) response_handle:logWarn('Goodbye.')
283283 end
284- FilterContext :
284+ Name : envoyextensionpolicy/default/policy-for-http-route/lua/0
285+ filterContext :
285286 mode : strict
286287 token_header : x-api-key
287- Name : envoyextensionpolicy/default/policy-for-http-route/lua/0
288288 hostname : www.example.com
289289 isHTTP2 : false
290290 metadata :
Original file line number Diff line number Diff line change @@ -29449,6 +29449,14 @@ spec:
2944929449 Lua defines a Lua extension
2945029450 Only one of Inline or ValueRef must be set
2945129451 properties:
29452+ filterContext:
29453+ additionalProperties:
29454+ type: string
29455+ description: |-
29456+ FilterContext is a set of key/value pairs that are made available to the Lua script
29457+ via request_handle:filterContext(). This allows a shared script to be
29458+ parameterized differently per EnvoyExtensionPolicy/route.
29459+ type: object
2945229460 inline:
2945329461 description: Inline contains the source code as an inline string.
2945429462 type: string
Original file line number Diff line number Diff line change @@ -7422,6 +7422,14 @@ spec:
74227422 Lua defines a Lua extension
74237423 Only one of Inline or ValueRef must be set
74247424 properties:
7425+ filterContext:
7426+ additionalProperties:
7427+ type: string
7428+ description: |-
7429+ FilterContext is a set of key/value pairs that are made available to the Lua script
7430+ via request_handle:filterContext(). This allows a shared script to be
7431+ parameterized differently per EnvoyExtensionPolicy/route.
7432+ type: object
74257433 inline:
74267434 description: Inline contains the source code as an inline string.
74277435 type: string
Original file line number Diff line number Diff line change @@ -7422,6 +7422,14 @@ spec:
74227422 Lua defines a Lua extension
74237423 Only one of Inline or ValueRef must be set
74247424 properties:
7425+ filterContext:
7426+ additionalProperties:
7427+ type: string
7428+ description: |-
7429+ FilterContext is a set of key/value pairs that are made available to the Lua script
7430+ via request_handle:filterContext(). This allows a shared script to be
7431+ parameterized differently per EnvoyExtensionPolicy/route.
7432+ type: object
74257433 inline:
74267434 description: Inline contains the source code as an inline string.
74277435 type: string
You can’t perform that action at this time.
0 commit comments