Skip to content

Commit acab554

Browse files
chore(kustomize): consolidate TokenRateLimitPolicy (#123)
Defines single TokenRateLimitPolicy to be consistently across the whole setup. It's also aligned with other policies to be deployed in the same namespace where the Gateway is defined. Signed-off-by: Bartosz Majsak <bartosz.majsak@gmail.com>
1 parent 26a28fd commit acab554

File tree

9 files changed

+6
-94
lines changed

9 files changed

+6
-94
lines changed

deployment/base/kustomization.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

deployment/base/maas-api/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ namespace: maas-api
66
resources:
77
- namespace.yaml
88
- deployment.yaml
9-
- token-rate-limit-policy.yaml
109
- service.yaml
1110
- httproute.yaml
1211
- auth-override.yaml

deployment/base/maas-api/token-rate-limit-policy.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

deployment/base/policies/token-limit-policy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apiVersion: kuadrant.io/v1alpha1
66
kind: TokenRateLimitPolicy
77
metadata:
88
name: gateway-token-rate-limits
9-
namespace: llm
9+
namespace: openshift-ingress
1010
spec:
1111
targetRef:
1212
group: gateway.networking.k8s.io

deployment/base/token-rate-limiting/kustomization.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

deployment/base/token-rate-limiting/token-rate-limit-policy.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

deployment/overlays/kubernetes/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
# Base configuration
88
resources:
99
# Core gateway routes and networking
10-
- ../../base
10+
- ../../base/networking
1111

1212
# Core MaaS API components
1313
- ../../base/maas-api

deployment/overlays/openshift/kustomization.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ metadata:
77
# Base configuration
88
resources:
99
# Core gateway routes and networking
10-
- ../../base
10+
- ../../base/networking
1111

1212
# Core MaaS API components
1313
- ../../base/maas-api
14-
14+
1515
# Policies
1616
- ../../base/policies
17-
17+
1818
# Observability (optional, can be commented out if not needed)
1919
# - ../../components/observability
2020

maas-api/deploy/policies/model/token-limit-policy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apiVersion: kuadrant.io/v1alpha1
66
kind: TokenRateLimitPolicy
77
metadata:
88
name: gateway-token-rate-limits
9-
namespace: llm
9+
namespace: openshift-ingress
1010
spec:
1111
targetRef:
1212
group: gateway.networking.k8s.io

0 commit comments

Comments
 (0)