forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
envoy-ratelimit.yaml
70 lines (58 loc) · 1.75 KB
/
envoy-ratelimit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#nolint:valid-pipeline-git-checkout-tag
package:
name: envoy-ratelimit
# This project doesn't do releases and everything is commit based.
version: 0.0.0_git20241216
epoch: 0
description: Go/gRPC service designed to enable generic rate limit scenarios from different types of applications.
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- git
pipeline:
- uses: git-checkout
with:
expected-commit: 6a2e8262874f012d08830cc34ba8058e66a33819
repository: https://github.com/envoyproxy/ratelimit
branch: main
- uses: go/build
with:
output: ratelimit
packages: ./src/service_cmd
test:
environment:
contents:
packages:
- redis
pipeline:
- runs: |
mkdir -p /var/run/nutcracker
redis-server redis.conf
# Wait for redis service to start
sleep 2
ratelimit -config_dir=configs &
# Wait for the ratelimit service to start
sleep 2
# Verify that Redis and ratelimit are running
if ! pgrep redis-server; then
echo "Redis failed to start" && exit 1
fi
if ! pgrep ratelimit; then
echo "Ratelimit service failed to start" && exit 1
fi
subpackages:
- name: envoy-ratelimit-compat
pipeline:
- runs: |
# The helm chart expects the ratelimit binary to be in /bin instead of /usr/bin
mkdir -p "${{targets.subpkgdir}}"/bin
ln -sf /usr/bin/ratelimit ${{targets.subpkgdir}}/bin/ratelimit
description: Compatibility package to place binaries in the location expected by upstream helm charts
update:
enabled: true
git: {}
schedule:
period: weekly
reason: This project doesn't do releases and everything is commit based