Commit Graph

24 Commits

Author SHA1 Message Date
Alexis Couvreur
dfb9bacf59 feat(providers): add provider.auto-stop-on-startup argument (#346)
This feature adds the capability to stop unregistered running instances upon startup.

Previously, you had to stop running instances manually or issue an initial request that will shut down instances afterwards.

With this change, all discovered instances will be shutdown. They need to be registered using labels. E.g.: sablier.enable=true

Fixes #153
2024-10-01 17:30:14 -07:00
Alexis Couvreur
9167e9c8c8 refactor(theme): themes are loaded at startup instead of every request 2024-04-30 14:07:53 -04:00
Alexis Couvreur
33d5d0905a tests: set timezone to UTC for consistency
The test would fail if you're running it from a different timezone
2023-01-09 13:01:04 -05:00
Alexis Couvreur
eb83d39652 feat(tinykv): add Delete method 2022-11-06 00:24:10 -04:00
Alexis Couvreur
411c2b2dc6 fix(tinykv): remove expired values from UnmarshalJSON 2022-11-02 23:15:06 -04:00
Alexis Couvreur
8cf668976c feat(tinykv): remove ExpiresAfter from json 2022-11-02 23:15:06 -04:00
Alexis Couvreur
04c55c2f49 stabilization 2022-11-02 23:15:06 -04:00
Alexis Couvreur
73afffe726 remove old scaler 2022-11-02 23:15:06 -04:00
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
08bd9b7520 test(tinykv): use regex quantifier instead of repeating pattern 2022-10-06 23:50:21 -04:00
Alexis Couvreur
b220bc4bf7 fix(tinykv): remove sliding feature 2022-10-03 21:45:44 +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
a374322f99 fix: bump import to v2
See https://go.dev/doc/modules/major-version
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
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
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
410a5e15eb fix(swarm): add an extra wait of 5 seconds to consider a service up 2022-07-23 12:53:23 -04:00
Romain
d299780f58 feat(kubernetes): add compatibility with Statefulset (#20)
* Add statefulset compatibility

* Add rbac in doc

* replace AvailableReplica by ReadyReplica

* Replace if to switch
2021-11-18 15:20:48 +01:00
Matthias Schneider
0e920523d2 feat: add kubernetes support (#14) 2021-10-01 18:40:43 +02:00
Alexis Couvreur
ebd24562b1 feat: add healthcheck lookup before redirect (#12)
Docker classic IsUp will return false when the container defines a healthcheck and is not healthy, otherwise as soon as it's started it's up.
Docker swarm will check that the number of required tasks is higher than 1, and that the number of running tasks matches the number of desired tasks.
A task is not running when it defines a healthcheck and is not healthy.
2021-09-28 12:44:27 +02:00
Alexis Couvreur
68732717ad fix: scale down correctly update the service specification 2021-09-26 21:01:55 +00:00
Alexis Couvreur
0ecd9d9213 feat: add log.Error on error 2021-09-26 20:51:04 +00:00
Alexis Couvreur
c96482ef67 feat: add docker classic support (#9)
Defaults with docker swarm support for retro compatibiliy.
You can add --swarmMode=false to deactivate it.

Closes #4
2021-09-26 00:36:45 +02:00