Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ jobs:
- version: v1.30.4
ipFamily: ipv4
# Enable these after https://github.com/envoyproxy/gateway/issues/4572 fixed
# - version: v1.31.0
# ipFamily: ipv6 # only run ipv6 test on latest version to save time
- version: v1.31.0
ipFamily: ipv6 # only run ipv6 test on latest version to save time
# TODO: this's IPv4 first, need a way to test IPv6 first.
- version: v1.31.0
ipFamily: dual # only run dual test on latest version to save time
Expand All @@ -148,6 +148,7 @@ jobs:
KIND_NODE_TAG: ${{ matrix.target.version }}
IMAGE_PULL_POLICY: IfNotPresent
IP_FAMILY: ${{ matrix.target.ipFamily }}
E2E_TIMEOUT: 1h
run: make e2e

benchmark-test:
Expand Down
5 changes: 5 additions & 0 deletions examples/redis/redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ data:
kind: EnvoyGateway
provider:
type: Kubernetes
kubernetes:
rateLimitDeployment:
container:
# remove this line when https://github.com/envoyproxy/ratelimit/pull/748 merged
image: ghcr.io/zirain-dev/ratelimit:latest
gateway:
controllerName: gateway.envoyproxy.io/gatewayclass-controller
extensionApis:
Expand Down
16 changes: 16 additions & 0 deletions internal/infrastructure/kubernetes/ratelimit/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,22 @@ func expectedRateLimitContainerEnv(rateLimit *egv1a1.RateLimit, rateLimitDeploym
namespace string,
) []corev1.EnvVar {
env := []corev1.EnvVar{
{
Name: "PROTO",
Value: "tcp6",
},
{
Name: "HOST",
Value: "",
},
{
Name: "DEBUG_HOST",
Value: "",
},
{
Name: "GRPC_HOST",
Value: "",
},
{
Name: RuntimeRootEnvVar,
Value: "/data",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: HOST
- name: DEBUG_HOST
- name: GRPC_HOST
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down