Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta #408

Merged
merged 94 commits into from
Oct 2, 2024
Merged

Beta #408

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
aed6ec5
chore(deps): update docker/build-push-action action to v6
renovate[bot] Jun 17, 2024
2ad210d
Merge pull request #322 from acouvreur/renovate/docker-build-push-act…
acouvreur Jun 18, 2024
4c51900
chore(deps): update traefik docker tag to v2.11.5
renovate[bot] Jun 18, 2024
4cc8f25
Merge pull request #325 from acouvreur/renovate/traefik-2.x
acouvreur Jun 19, 2024
e692e1f
fix(docker): ensure connection is established with host
acouvreur Jun 27, 2024
977dca1
chore(deps): update alpine docker tag to v3.20.1
renovate[bot] Jun 20, 2024
b603b57
docs(release): update doc version from 1.7.0 to 1.7.1-beta.1 [skip ci]
semantic-release-bot Jun 28, 2024
70f337d
feat(plugin): add `proxywasm` plugin (#284)
acouvreur Jun 28, 2024
8ef1af0
docs(release): update doc version from 1.7.1-beta.1 to 1.8.0-beta.1 […
semantic-release-bot Jun 28, 2024
2d6ff90
build(release): setup tinygo before release
acouvreur Jun 28, 2024
1f62f35
chore(deps): update apache/apisix docker tag to v3.9.1
renovate[bot] Jun 28, 2024
fe5bfaf
fix(deps): update golang.org/x/exp digest to 7f521ea
renovate[bot] Jun 28, 2024
ff6a939
docs(release): update doc version from 1.8.0-beta.1 to 1.8.0-beta.2 […
semantic-release-bot Jun 28, 2024
1b5b953
fix(deps): update module github.com/docker/docker to v27
renovate[bot] Jun 27, 2024
2442cd6
docs(release): update doc version from 1.8.0-beta.2 to 1.8.0-beta.3 […
semantic-release-bot Jun 28, 2024
83d383e
chore(deps): update rancher/k3s docker tag to v1.30.2
renovate[bot] Jun 28, 2024
c9db7d9
chore(deps): update nginx docker tag to v1.27.0
renovate[bot] Jun 28, 2024
f6eeee8
fix(deps): update module github.com/stretchr/testify to v1.9.0
renovate[bot] Jun 28, 2024
82cb482
docs(release): update doc version from 1.8.0-beta.3 to 1.8.0-beta.4 […
semantic-release-bot Jun 28, 2024
52bba90
fix(deps): update module github.com/tetratelabs/proxy-wasm-go-sdk to …
renovate[bot] Jun 28, 2024
eb236ab
fix(deps): update tinygo to v0.32.0
acouvreur Jun 28, 2024
f3adb6c
docs(release): update doc version from 1.8.0-beta.4 to 1.8.0-beta.5 […
semantic-release-bot Jun 28, 2024
c9af0ee
chore(deps): update traefik docker tag to v3
renovate[bot] Jun 19, 2024
18149dd
chore(deps): update ubuntu docker tag to v24
renovate[bot] Jun 28, 2024
168fa07
docs(traefik): support blocking strategy (#338)
tomaszduda23 Jun 29, 2024
e9991c2
chore(deps): update traefik docker tag to v3.0.4
renovate[bot] Jul 3, 2024
a2f7617
fix(deps): update module github.com/docker/docker to v27.0.3+incompat…
renovate[bot] Jul 1, 2024
9770e7f
chore(deps): update dependency go to v1.22.5
renovate[bot] Jul 2, 2024
c1d578d
docs(release): update doc version from 1.8.0-beta.5 to 1.8.0-beta.6 […
semantic-release-bot Jul 3, 2024
7ebfdd5
docs: add multiversioned documentation (#344)
acouvreur Jul 3, 2024
52a7d21
feat(providers): add `provider.auto-stop-on-startup` argument (#346)
acouvreur Jul 4, 2024
99556d2
docs(release): update doc version from 1.8.0-beta.6 to 1.8.0-beta.7 […
semantic-release-bot Jul 4, 2024
23055f4
fix(deps): update module golang.org/x/sync to v0.7.0
renovate[bot] Jul 4, 2024
3b34054
docs(release): update doc version from 1.8.0-beta.7 to 1.8.0-beta.8 […
semantic-release-bot Jul 4, 2024
be7ace0
perf(providers): retrieve state on start instead of assuming starting…
acouvreur Jul 8, 2024
69c56fd
fix(deps): update golang.org/x/exp digest to 46b0784
renovate[bot] Jul 8, 2024
3d00865
docs(release): update doc version from 1.8.0-beta.8 to 1.8.0-beta.9 […
semantic-release-bot Jul 8, 2024
3422a79
fix(docker): move sablier binary from /etc/sablier/sablier to /bin/sa…
acouvreur Jul 8, 2024
1b980de
docs(release): update doc version from 1.8.0-beta.9 to 1.8.0-beta.10 …
semantic-release-bot Jul 8, 2024
a7e3ce3
fix(kubernetes): use ParseName everywhere with replicas
acouvreur Jul 10, 2024
38107f8
fix(sessions): return and heanlde error everytime
acouvreur Jul 10, 2024
f9266d6
docs(release): update doc version from 1.8.0-beta.10 to 1.8.0-beta.11…
semantic-release-bot Jul 10, 2024
506577f
fix(session): properly set state name when started successfully
acouvreur Jul 10, 2024
4b62654
docs(release): update doc version from 1.8.0-beta.11 to 1.8.0-beta.12…
semantic-release-bot Jul 10, 2024
9ea2be9
fix(deps): update kubernetes packages to v0.30.3
renovate[bot] Jul 18, 2024
f1a082b
fix(deps): update module github.com/docker/docker to v27.1.1+incompat…
renovate[bot] Jul 23, 2024
d2f1485
chore(deps): update alpine docker tag to v3.20.2
renovate[bot] Jul 22, 2024
5985712
chore(deps): update envoyproxy/envoy docker tag to v1.31
renovate[bot] Jul 19, 2024
4c5d2af
chore(deps): update traefik docker tag to v3.1.0
renovate[bot] Jul 15, 2024
2862e81
fix(deps): update golang.org/x/exp digest to 8a7402a
renovate[bot] Jul 19, 2024
1463a68
docs(release): update doc version from 1.8.0-beta.12 to 1.8.0-beta.13…
semantic-release-bot Jul 24, 2024
58cccf8
chore(deps): update traefik docker tag to v3.1.1
renovate[bot] Jul 30, 2024
5e9f541
chore(deps): update rancher/k3s docker tag to v1.30.3
renovate[bot] Jul 31, 2024
0ca68b1
fix(deps): update module golang.org/x/sync to v0.8.0
renovate[bot] Aug 4, 2024
6008342
chore(deps): update dependency go to v1.22.6
renovate[bot] Aug 6, 2024
893878b
fix(deps): update golang.org/x/exp digest to 0cdaa3a
renovate[bot] Aug 8, 2024
879ba66
chore(deps): update traefik docker tag to v3.1.2
renovate[bot] Aug 6, 2024
88847d9
docs(release): update doc version from 1.8.0-beta.13 to 1.8.0-beta.14…
semantic-release-bot Aug 9, 2024
f679211
fix(deps): update kubernetes packages to v0.31.0
renovate[bot] Aug 13, 2024
1e112b6
docs(release): update doc version from 1.8.0-beta.14 to 1.8.0-beta.15…
semantic-release-bot Aug 14, 2024
a93d594
fix(deps): update module github.com/docker/docker to v27.1.2+incompat…
renovate[bot] Aug 14, 2024
b236b0e
docs(release): update doc version from 1.8.0-beta.15 to 1.8.0-beta.16…
semantic-release-bot Aug 14, 2024
383056e
chore(deps): update rancher/k3s docker tag to v1.30.4
renovate[bot] Aug 22, 2024
554589f
fix(deps): update golang.org/x/exp digest to 9b4947d
renovate[bot] Aug 23, 2024
11b4d44
docs(release): update doc version from 1.8.0-beta.16 to 1.8.0-beta.17…
semantic-release-bot Aug 23, 2024
c35cb4e
chore(deps): update apache/apisix docker tag to v3.10.0
renovate[bot] Sep 3, 2024
932d7d9
chore(deps): update rancher/k3s docker tag to v1.31.0
renovate[bot] Sep 3, 2024
12f739f
fix(deps): update module github.com/docker/docker to v27.2.0+incompat…
renovate[bot] Aug 27, 2024
0128fb8
docs(release): update doc version from 1.8.0-beta.17 to 1.8.0-beta.18…
semantic-release-bot Sep 3, 2024
c7e9f06
fix(api): add Cache-Control header on dynamic page to prevent caching…
valankar Sep 6, 2024
83749e7
docs(release): update doc version from 1.8.0-beta.18 to 1.8.0-beta.19…
semantic-release-bot Sep 6, 2024
2729e97
chore(deps): update alpine docker tag to v3.20.3
renovate[bot] Sep 6, 2024
b9c5772
fix(deps): update module github.com/docker/docker to v27.2.1+incompat…
renovate[bot] Sep 9, 2024
18262ae
fix(deps): update golang.org/x/exp digest to e7e105d
renovate[bot] Sep 5, 2024
ca9e251
docs(release): update doc version from 1.8.0-beta.19 to 1.8.0-beta.20…
semantic-release-bot Sep 9, 2024
a764ab1
build(binary): reduce binary size by ~30%
acouvreur Sep 11, 2024
ad4cfb4
build(docker): reduce image size by ~10%
acouvreur Sep 11, 2024
238df34
chore: remove all-contributors
acouvreur Sep 11, 2024
dc75be5
chore: remove old example from root folder
acouvreur Sep 11, 2024
c553784
chore(deps): update mcr.microsoft.com/devcontainers/go docker tag to …
renovate[bot] Aug 20, 2024
4eeb327
fix(deps): update golang.org/x/exp digest to 701f63a
renovate[bot] Sep 9, 2024
0df473f
docs(release): update doc version from 1.8.0-beta.20 to 1.8.0-beta.21…
semantic-release-bot Sep 11, 2024
d06a81b
chore(deps): update nginx docker tag to v1.27.1
renovate[bot] Aug 15, 2024
858943c
chore(deps): update golang docker tag to v1.23
renovate[bot] Aug 14, 2024
6caa28d
test(e2e): retry on tcp failure
acouvreur Sep 11, 2024
f721a05
test(e2e): use file config for traefik in docker
acouvreur Sep 11, 2024
2106528
fix(dynamic): avoid panic on nil instance
acouvreur Sep 11, 2024
94b0631
docs(release): update doc version from 1.8.0-beta.21 to 1.8.0-beta.22…
semantic-release-bot Sep 11, 2024
30c2e65
chore(deps): update dependency go to v1.23.1
renovate[bot] Sep 11, 2024
1b7b512
ci(release): remove skip-ci keyword from release commit
acouvreur Sep 11, 2024
b1c826d
fix(deps): update module github.com/docker/docker to v27.3.1+incompat…
renovate[bot] Sep 20, 2024
989dc60
chore(deps): update dependency go to v1.23.2
renovate[bot] Oct 1, 2024
296ddf3
chore(deps): update rancher/k3s docker tag to v1.31.1
renovate[bot] Sep 20, 2024
042ba4f
chore(deps): update traefik docker tag to v3.1.4
renovate[bot] Sep 19, 2024
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
100 changes: 0 additions & 100 deletions .all-contributorsrc

This file was deleted.

2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Go",
"image": "mcr.microsoft.com/devcontainers/go:1.22-bookworm",
"image": "mcr.microsoft.com/devcontainers/go:1.23",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:

- name: Build and push by digest
id: build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
cache-from: type=gha
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Github Pages
on:
push:
branches:
- main
- beta
paths:
- '.github/workflows/pages.yml'
- 'docs/**'

env:
# Publish the main documentation in 'docs/main' folder, and the beta in 'docs/beta'
# Routing and version selection is handled in the main documentation.
DESTINATION_DIR: ${{ github.ref == 'refs/heads/main' && 'docs/main' || 'docs/beta' }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Deploy index.html
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
destination_dir: docs
# Subfolders docs/main and docs/beta will contain the actual versioned documentation.
# This is just to have the rooting properly done at the root.
keep_files: true

- name: Deploy versioned documentation
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
destination_dir: ${{ env.DESTINATION_DIR }}
keep_files: false
153 changes: 150 additions & 3 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: plugins/caddy
file: plugins/caddy/Dockerfile
Expand Down Expand Up @@ -209,4 +209,151 @@ jobs:
run: docker load --input /tmp/caddy.tar

- name: Test ${{ matrix.provider }}
run: cd plugins/caddy/e2e/${{ matrix.provider }} && bash ./run.sh
run: cd plugins/caddy/e2e/${{ matrix.provider }} && bash ./run.sh

build-proxywasm:
name: Build ProxyWasm Plugin once and share it to ProxyWasm E2E jobs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup TinyGo
uses: acifani/setup-tinygo@v2
with:
tinygo-version: '0.32.0'

- name: Build
run: make proxywasm

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: proxywasm-plugin-wasm
path: ./plugins/proxywasm/sablierproxywasm.wasm

proxywasm_apisix_e2e:
name: Run Sablier E2E tests for Proxywasm middleware on Apache APISIX
runs-on: ubuntu-latest
needs:
- build
- build-proxywasm
strategy:
fail-fast: false
matrix:
provider: [ docker ] #, docker_swarm, kubernetes]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.22
cache-dependency-path: |
go.sum

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: sablier-image-tar
path: /tmp

- name: Load Docker image
run: docker load --input /tmp/sablier.tar

- name: Download Proxywasm artifact
uses: actions/download-artifact@v4
with:
name: proxywasm-plugin-wasm
path: ./plugins/proxywasm

- name: Test ${{ matrix.provider }}
run: cd plugins/proxywasm/e2e/apacheapisix/${{ matrix.provider }} && bash ./run.sh

proxywasm_envoy_e2e:
name: Run Sablier E2E tests for Proxywasm middleware on Envoy
runs-on: ubuntu-latest
needs:
- build
- build-proxywasm
strategy:
fail-fast: false
matrix:
provider: [ docker ] #, docker_swarm, kubernetes]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.22
cache-dependency-path: |
go.sum

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: sablier-image-tar
path: /tmp

- name: Load Docker image
run: docker load --input /tmp/sablier.tar

- name: Download Proxywasm artifact
uses: actions/download-artifact@v4
with:
name: proxywasm-plugin-wasm
path: ./plugins/proxywasm

- name: Test ${{ matrix.provider }}
run: cd plugins/proxywasm/e2e/envoy/${{ matrix.provider }} && bash ./run.sh

proxywasm_nginx_e2e:
name: Run Sablier E2E tests for Proxywasm middleware on Nginx
runs-on: ubuntu-latest
needs:
- build
- build-proxywasm
strategy:
fail-fast: false
matrix:
provider: [ docker ] #, docker_swarm, kubernetes]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.22
cache-dependency-path: |
go.sum

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: sablier-image-tar
path: /tmp

- name: Load Docker image
run: docker load --input /tmp/sablier.tar

- name: Download Proxywasm artifact
uses: actions/download-artifact@v4
with:
name: proxywasm-plugin-wasm
path: ./plugins/proxywasm

- name: Test ${{ matrix.provider }}
run: cd plugins/proxywasm/e2e/nginx/${{ matrix.provider }} && bash ./run.sh
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Setup TinyGo
uses: acifani/setup-tinygo@v2
with:
tinygo-version: '0.32.0'

- name: Release
env:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
sablier.yaml
./plugins/traefik/e2e/kubeconfig.yaml
node_modules
.DS_Store
.DS_Store
*.wasm
kubeconfig.yaml
15 changes: 15 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
linters:
enable:
- dupword # Checks for duplicate words in the source code.
- goimports
- gosec
- gosimple
- govet
- importas
- ineffassign
- misspell
- revive
- staticcheck
- typecheck
- unconvert
- unused
Loading