From 3347598dd195f685d7f755a6506981bf06db27b8 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Tue, 22 Oct 2024 17:15:07 +0200 Subject: [PATCH] fix wasm config Signed-off-by: Eguzki Astiz Lezaun --- utils/deploy/envoy.yaml | 30 +++++++++++++----------- utils/kustomize/limitador/limitador.yaml | 6 +++++ 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/utils/deploy/envoy.yaml b/utils/deploy/envoy.yaml index edf4cf32..32c3286d 100644 --- a/utils/deploy/envoy.yaml +++ b/utils/deploy/envoy.yaml @@ -278,21 +278,23 @@ data: }, { "name": "rlp-ns-D/rlp-name-D", - "hostnames": [ - "*.d.rlp.com" - ], - "rules": [ + "routeRuleConditions": { + "hostnames": [ + "*.d.rlp.com" + ], + "matches": [ + { + "selector": "source.remote_address", + "operator": "neq", + "value": "50.0.0.1" + } + ] + }, + "actions": [ { - "conditions": [ - { - "allOf": [ - { - "selector": "source.remote_address", - "operator": "neq", - "value": "50.0.0.1" - } - ] - } + "service": "limitador", + "scope": "rlp-ns-D/rlp-name-D, + "data": [ ], "actions": [ { diff --git a/utils/kustomize/limitador/limitador.yaml b/utils/kustomize/limitador/limitador.yaml index 68069a68..d80cf3f5 100644 --- a/utils/kustomize/limitador/limitador.yaml +++ b/utils/kustomize/limitador/limitador.yaml @@ -35,3 +35,9 @@ spec: conditions: [] variables: - source.remote_address + - namespace: multi-ns-B/multi-name-B + max_value: 5 + seconds: 10 + conditions: + - "user_id == 'alice'" + variables: []