Skip to content

Commit

Permalink
gen
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake authored and zirain committed Jan 15, 2025
1 parent eb7a8d2 commit 758f5f5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,3 @@ backendTrafficPolicies:
limit:
requests: 10
unit: Hour
cost:
request:
from: Number
number: 1
response:
from: Metadata
metadata:
namespace: something.com
key: some_cost_set_by_foo
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ backendTrafficPolicies:
- invert: true
name: x-org-id
type: Distinct
cost:
request:
from: Number
number: 1
response:
from: Metadata
metadata:
key: some_cost_set_by_foo
namespace: something.com
limit:
requests: 10
unit: Hour
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,12 @@ backendTrafficPolicies:
limit:
requests: 20
unit: Hour
cost:
request:
from: Number
number: 1
response:
from: Metadata
metadata:
namespace: something.com
key: some_cost_set_by_foo
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ backendTrafficPolicies:
- sourceCIDR:
type: Distinct
value: 192.168.0.0/16
cost:
request:
from: Number
number: 1
response:
from: Metadata
metadata:
key: some_cost_set_by_foo
namespace: something.com
limit:
requests: 20
unit: Hour
Expand Down Expand Up @@ -370,3 +379,7 @@ xdsIR:
limit:
requests: 20
unit: Hour
requestCost:
number: 1
responseCost:
format: '%DYNAMIC_METADATA(something.com:some_cost_set_by_foo)%'

0 comments on commit 758f5f5

Please sign in to comment.