Skip to content

Commit

Permalink
HTTPs proxy (#32)
Browse files Browse the repository at this point in the history
* feat: added http proxy and modified operator to not create more kong stuff

* feat(proxy): adjusted tiers to set rate interval

* chore(proxy): adjusted manifest example

* feat(proxy): added prometheus metrics

* feat(operator): updated dcu metric collector

* feat(proxy): changed tiers k8s watcher to file watcher

* chore(proxy): adjusted update tiers error to not break the loop

* chore(operator): removed dockerfile

* feat(proxy): added dynamic rate limiter buckets

* docs(operator): added operator docs

* docs(proxy): added proxy docs

* feat(proxy): added serde custom deserialization

* chore(proxy): adjusted deserializer error message

* chore(example): updated tiers config map

* docs(proxy): improved readme

* docs(operator): improved readme

* feat(proxy): added dynamic rate buckets
  • Loading branch information
paulobressan authored Mar 14, 2024
1 parent 05f1bc9 commit 8d50b79
Show file tree
Hide file tree
Showing 33 changed files with 2,956 additions and 1,079 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
paths:
- ".github/workflows/controller.yml"
- "operator/**"

jobs:
build-images:
strategy:
fail-fast: false
matrix:
include:
- context: operator
file: operator/Dockerfile
- context: .
file: docker/dockerfile.operator
endpoint: demeter-run/ext-cardano-kupo-operator

continue-on-error: true
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/proxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Proxy

on:
workflow_dispatch: {}
push:
branches:
- "main"
paths:
- ".github/workflows/proxy.yml"
- "proxy/**"

jobs:
build-images:
strategy:
fail-fast: false
matrix:
include:
- context: .
file: docker/dockerfile.proxy
endpoint: demeter-run/ext-cardano-kupo-proxy

continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: ${{ matrix.context }}
file: ${{ matrix.file }}
platforms: linux/amd64
push: true
tags: ghcr.io/${{ matrix.endpoint }},ghcr.io/${{ matrix.endpoint }}:${{ github.sha }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/target
.env
cert
env-crd.yaml
tiers.toml
Loading

0 comments on commit 8d50b79

Please sign in to comment.