Skip to content

Commit

Permalink
Move selectors to expressions in dev environment
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Cattermole <[email protected]>
  • Loading branch information
adam-cattermole committed Nov 12, 2024
1 parent 6cc5dd4 commit 4472c4b
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions utils/deploy/envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ data:
"scope": "rlp-ns-A/rlp-name-A",
"data": [
{
"selector": {
"selector": "unknown.path"
"expression": {
"key": "unknown.path",
"value": "unknown.path"
}
}
]
Expand Down Expand Up @@ -237,19 +238,21 @@ data:
}
},
{
"selector": {
"selector": "source.address"
"expression": {
"key": "source.address",
"value": "source.address"
}
},
{
"selector": {
"selector": "request.headers.My-Custom-Header-01"
"expression": {
"key": "request.headers['My-Custom-Header-01']",
"value": "request.headers['My-Custom-Header-01']"
}
},
{
"selector": {
"selector": "metadata.filter_metadata.envoy\\.filters\\.http\\.header_to_metadata.user_id",
"key": "user_id"
"expression": {
"key": "user_id",
"value": "string(getHostProperty(['metadata', 'filter_metadata', 'envoy.filters.http.header_to_metadata', 'user_id']))"
}
}
]
Expand Down Expand Up @@ -278,8 +281,9 @@ data:
"scope": "rlp-ns-D/rlp-name-D",
"data": [
{
"selector": {
"selector": "source.remote_address"
"expression": {
"key": "source.remote_address",
"value": "source.remote_address"
}
}
]
Expand Down

0 comments on commit 4472c4b

Please sign in to comment.