Commit Graph

145 Commits

Author SHA1 Message Date
Alexis Couvreur
333efd2d70 fix(swarm): remove 503 error workaround
It's not working as it is part of a higher issue
2022-11-02 23:15:06 -04:00
Alexis Couvreur
ff5b510dd1 ci(plugins): add kubernetes test with deployments 2022-10-13 09:21:18 -04:00
Alexis Couvreur
95261c134f test(swarm): set swarmModeRefreshSeconds to 1
For testing purposes this is important
2022-10-06 23:50:21 -04:00
Alexis Couvreur
9f52462bc9 test(plugins): e2e tests will exit 1 on error 2022-10-06 23:50:21 -04:00
Alexis Couvreur
08bd9b7520 test(tinykv): use regex quantifier instead of repeating pattern 2022-10-06 23:50:21 -04:00
Alexis Couvreur
8dae012ab1 ci(docker): bump docker actions version 2022-10-06 23:50:21 -04:00
Alexis Couvreur
f55f253de6 test: add e2e tag build constraint
This avoids testing e2e when calling go test only
2022-10-06 23:50:21 -04:00
Alexis Couvreur
840d4a4670 test(traefik): use SablierResponse struct 2022-10-06 23:50:21 -04:00
Alexis Couvreur
4f593b557a ci: add branches restriction for build and docker workflows 2022-10-06 23:50:21 -04:00
Alexis Couvreur
235c939771 build: remove "build" target from Makefile
You can invoke directly "make linux/arm"
2022-10-06 23:50:21 -04:00
Alexis Couvreur
a573a57ddf ci(traefik): add e2e tests 2022-10-06 23:50:21 -04:00
Alexis Couvreur
d1acef6ce3 ci(plugins): workflow trigger on main and develop branches v1.0.0-beta.2 2022-10-05 23:28:58 +00:00
Alexis Couvreur
25e9e52629 fix(traefik): remove line breaks from loading page 2022-10-05 18:48:25 +00:00
Alexis Couvreur
23f7626f6b fix(docker): run container as root by default
To access the docker socket you need to be root or in the docker group.

The GID changes from one machine to the other.

For now the image will be running as root.
2022-10-04 19:06:00 +00:00
Alexis Couvreur
0045bcb494 fix(http): use gin without default configuration 2022-10-04 19:04:43 +00:00
Alexis Couvreur
70d93a0c3b fix(traefik): parse JSON response from sablier 2022-10-04 19:03:40 +00:00
Alexis Couvreur
7fbc0df429 fix: set gin to release mode 2022-10-04 14:41:39 +00:00
Alexis Couvreur
65e98dcac2 build(docker): use Makefile build directive inside Dockerfile 2022-10-04 14:40:28 +00:00
Alexis Couvreur
b220bc4bf7 fix(tinykv): remove sliding feature 2022-10-03 21:45:44 +00:00
Alexis Couvreur
b6ea948351 docs: add migration notice v1.0.0-beta.1 2022-10-03 20:27:14 +00:00
Alexis Couvreur
7703a3041c Revert "fix: bump import to v2"
This reverts commit 9cb9b2aa7a57047a7e61b2c54732b3e25300bf20.
2022-10-03 20:27:14 +00:00
Alexis Couvreur
f3359f4acb Revert "fix(traefik): add "v2" to the import path"
This reverts commit 3b946a1408d7907926d242143b5f9c29d2537df1.
2022-10-03 20:27:14 +00:00
Alexis Couvreur
2c93144e53 chore: add go workspace config 2022-10-03 20:27:14 +00:00
Alexis Couvreur
a374322f99 fix: bump import to v2
See https://go.dev/doc/modules/major-version
2022-10-03 20:27:14 +00:00
Alexis Couvreur
8e81b703bc fix(traefik): add "v2" to the import path
Avoid error "invalid version: module contains a go.mod file, so module path must match major version (\"github.com/acouvreur/sablier/v2\")"
2022-10-03 20:27:14 +00:00
Alexis Couvreur
573f0c1e5b refactor: put acouvreur/tinykv inside the repository 2022-10-03 20:27:14 +00:00
Alexis Couvreur
430b159c6f fix(traefik): unescaped quote 2022-10-03 20:27:14 +00:00
Alexis Couvreur
1850a9545f feat: add project icon
Fixes #42
2022-10-03 20:27:14 +00:00
Alexis Couvreur
0daddf377c feat: add new cli system (#51) 2022-10-03 20:27:14 +00:00
Alexis Couvreur
551a146d94 feat: merge service repository into Sablier
Add plugins folder to integrate with multiple reverse proxies

The project is now released as 'Sablier'
2022-10-03 20:27:06 +00:00
Alexis Couvreur
ad4e9ffb8c Add 'plugins/traefik/' from commit 'aef1f9e0dd205ea9cdea9e3ccf11900c5fe79b1f'
git-subtree-dir: plugins/traefik
git-subtree-mainline: 1a14070131
git-subtree-split: aef1f9e0dd
2022-09-30 14:32:09 +00:00
Alexis Couvreur
1a14070131 fix: upgrade tinykv to avoid "fatal error: concurrent map iteration and map write" during periodic syncs 2022-07-23 12:53:23 -04:00
Alexis Couvreur
3eb7d480da feat: add persistent storage (#30)
* refactor: remove unused default timeout

* feat: add persistent storage

Allows you to save the state to a file and load it upon restarting the app to restore the previous state.

* chore: upgrade to go 1.18

* use tinykv with generics

* build: add "-buildvcs=false" flag

Git is not available in golang:1.18-alpine image
2022-07-23 12:53:23 -04:00
Alexis Couvreur
4eb086f9d5 fix(swarm): avoid API hammering on scaling request (#26) 2022-07-23 12:53:23 -04:00
Alexis Couvreur
0edf684643 ci: add "beta" branch to ci release trigger" 2022-07-23 12:53:23 -04:00
Alexis Couvreur
4f89362e41 ci: release on beta branch 2022-07-23 12:53:23 -04:00
Alexis Couvreur
410a5e15eb fix(swarm): add an extra wait of 5 seconds to consider a service up 2022-07-23 12:53:23 -04:00
Alexis Couvreur
aef1f9e0dd docs: add an instruction to scale down the whoami deployment 2022-07-23 12:49:38 -04:00
Alexis Couvreur
5c96a1f9d5 docs: bump plugin version to v1.2.0 2022-07-23 12:49:38 -04:00
Alexis Couvreur
e671c3f989 fix: return as soon as one service is unavailable
When multiple services are unavailble, the function would write multiple times to the response writer.
2022-07-23 12:49:38 -04:00
Alexis Couvreur
c57d93bf7c feat: add optional display name config property
Allows you to overwrite the loading display name which defaults to the middleware name
2022-07-23 12:49:38 -04:00
Stanislas Bruhière
b05d300add feat: add support to scale down multiple containers (#20)
* Add support for names to scale down multiple containers

* Revert loading to old version

* Add tests for multiple

* Add tests for blocking strategy

* Rollback loading.html

* Update README.md

Co-authored-by: Alexis Couvreur <alexiscouvreur.pro@gmail.com>
2022-07-23 12:49:38 -04:00
Alexis Couvreur
1f5d146271 Merge beta into main #18
Merge beta into main
2022-01-25 22:40:26 +01:00
Alexis Couvreur
44641017b8 docs: add table of contents 2021-12-22 12:28:54 +01:00
Alexis Couvreur
2f15b4038c fix: set all lowercase style for blocking strategy keys 2021-12-22 12:20:47 +01:00
Alexis Couvreur
b4aa07cf2e Merge branch 'main' into beta 2021-12-22 11:57:48 +01:00
Alexis Couvreur
beb13ab3f9 fix: correctly use default errorPage template instead of loadingPage template on GetErrorPage (#17)
Error introduced in release v1.1.0

It used the loadingPage default template instead of the errorPage default template on GetErrorPage calls
2021-12-15 10:12:04 +01:00
Alexis COUVREUR
afc2b25945 ci(release): trigger release pipeline on beta branch 2021-12-11 15:52:36 +01:00
Alexis Couvreur
b4f5eebaac feat: add blocking request (#12)
* feat: add blocking strategy

* docs: add examples for blocking strategy

* ci: run go tests recursively

* perf: wait for BlockCheckInterval for each request

* fix: use camel case instead of snake case for yaml config

* docs: add loading and error page customization as a feature

* fix: use errorPage

* fix: return json instead of html page

* set json key

* update development config

* docs: add comment about custom loading pages

* ci: add beta release
2021-12-11 15:46:56 +01:00
Alexis Couvreur
327211cbbf docs: format custom loading/error pages 2021-12-09 23:01:02 +01:00