Commit Graph

742 Commits

Author SHA1 Message Date
dependabot[bot]
641c1bb74f build(deps): bump github.com/spf13/viper from 1.19.0 to 1.20.0 (#567)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.19.0...v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-17 18:29:59 -04:00
dependabot[bot]
cc23853966 build(deps): bump github.com/docker/docker from 27.5.1+incompatible to 28.0.1+incompatible (#539)
* build(deps): bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.5.1+incompatible to 28.0.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.5.1...v28.0.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexis Couvreur <alexiscouvreur.pro@gmail.com>
2025-03-13 00:08:13 -04:00
dependabot[bot]
352d79755f build(deps): bump the k8s-io group across 1 directory with 3 updates (#559)
Bumps the k8s-io group with 2 updates in the / directory: [k8s.io/api](https://github.com/kubernetes/api) and [k8s.io/client-go](https://github.com/kubernetes/client-go).


Updates `k8s.io/api` from 0.32.2 to 0.32.3
- [Commits](https://github.com/kubernetes/api/compare/v0.32.2...v0.32.3)

Updates `k8s.io/apimachinery` from 0.32.2 to 0.32.3
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.32.2...v0.32.3)

Updates `k8s.io/client-go` from 0.32.2 to 0.32.3
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.32.2...v0.32.3)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-12 22:57:09 -04:00
dependabot[bot]
d65898bad2 build(deps): bump github.com/samber/slog-gin from 1.14.1 to 1.15.0 (#560)
Bumps [github.com/samber/slog-gin](https://github.com/samber/slog-gin) from 1.14.1 to 1.15.0.
- [Release notes](https://github.com/samber/slog-gin/releases)
- [Commits](https://github.com/samber/slog-gin/compare/v1.14.1...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/samber/slog-gin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-12 22:56:49 -04:00
dependabot[bot]
d8cebfaa09 build(deps): bump golang.org/x/net from 0.35.0 to 0.36.0 (#561)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-12 22:56:33 -04:00
Alexis Couvreur
13fc346a89 ci: add go binary diff (#562)
* ci: add go binary diff

* copilot fix :)

* print the diff in a code block

* fix yaml

* fix eof

* use cat command
2025-03-12 22:47:16 -04:00
semantic-release-bot
31464c38b5 docs(release): update doc version from 1.8.6 to 1.9.0 v1.9.0 2025-03-13 01:07:06 +00:00
Alexis Couvreur
a897c65d39 feat: add blocking refresh frequency (#558)
* feat: add blocking refresh frequency

The refresh frequency when using the blocking strategy was set to 5 seconds. This is now configurable with a default value of 5 seconds.

* fail ci if codecov fail

* always upload codecov even if ci fails

* remove useless panic

* use fork

* add -short - revert later

* remove short

* publish test results
2025-03-12 21:06:28 -04:00
Alexis Couvreur
fca9c79289 refactor: reorganize code structure (#556)
* refactor: rename providers to Provider

* refactor folders

* fix build cmd

* fix build cmd

* fix build cmd

* fix cmd start
2025-03-10 14:11:40 -04:00
Alexis Couvreur
8122a888b1 ci: add test results codecov (#554)
* ci: add test results codecov

* add go-junit-report with go tool directive
2025-03-09 19:17:53 -04:00
Alexis Couvreur
7a885ebd5f test: use httpexpect v2.17 upstream (#552)
* test: use httpexpect v2.17 upstream

This change brings the WithRetryPolicyFunc previously implemented in the fork.

* fix e2e test

* extend key duration

* remove parallel
2025-03-09 18:34:19 -04:00
Alexis Couvreur
b72c37a85a refactor: remove discovery package (#553) 2025-03-09 01:29:06 -05:00
dependabot[bot]
8e5d5758a9 build(deps): bump golang.org/x/sync from 0.11.0 to 0.12.0 (#548)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/sync/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-08 23:25:45 -05:00
Alexis Couvreur
92eb721d69 refactor: remove session manager (#551)
The session manager is now simply Sablier
2025-03-08 15:43:33 -05:00
Alexis Couvreur
1298d86c61 test: remove mocks package (#549) 2025-03-07 00:24:56 -05:00
Alexis Couvreur
b5c68c6f1b test(discovery): use providertest (#547) 2025-03-03 22:35:02 -05:00
Alexis Couvreur
a37f5943cc test(kubernetes): increase test coverage (#546) 2025-03-03 22:05:20 -05:00
semantic-release-bot
25ab9e1c7a docs(release): update doc version from 1.8.5 to 1.8.6 v1.8.6 2025-03-03 04:31:43 +00:00
Alexis Couvreur
edbf7d9d15 fix(kubernetes): consider workload not ready when scaled to 0 (#543)
* test(kubernetes): use testcontainers for test

* fix(kubernetes): get state properly reports the workload as down when scaled to 0

* refactor(kubernetes): split provider in multiple files

* refactor(provider): use Instance prefix for actions

* test(testcontainers): use provider.PullImage

* squash

* Revert "test(testcontainers): use provider.PullImage"

This reverts commit 6f958c48a5.

* test: add random generator thread safety
2025-03-02 23:30:59 -05:00
dependabot[bot]
198ed6cb35 build(deps): bump github.com/go-jose/go-jose/v3 in /plugins/caddy (#540)
Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v3.0.3...v3.0.4)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-02 19:34:57 -05:00
Alexis Couvreur
5863e65f7b test(swarm): use testcontainers for tests (#542)
* test(swarm): add service_inspect.go

* test(swarm): add testcontainers tests
2025-03-02 11:36:12 -05:00
Alexis Couvreur
b1e8fc2f20 test(docker): use testcontainers (#519)
* refactor: move app/theme to pkg/theme

* refactor

* wip

* use dockerindocker

* add providertest

* wip

* wip

* test(docker): get state  now uses dind container to test against a real provider

* test(docker): move to docker_test package

* refactor(docker): create container_inspect.go

* test(docker): add more dind test

* test(docker): event test now use docker in docker

* refactor: remove unused instance  type props

* refactor test docker

* fix instance list  sort

* stabilize test

* remove testcontainers custom config
2025-03-01 19:34:36 -05:00
dependabot[bot]
a496857973 build(deps): bump github.com/spf13/cobra from 1.8.1 to 1.9.1 (#525)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.8.1 to 1.9.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.8.1...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-01 17:29:43 -05:00
Alexis Couvreur
9430cc3eb3 chore(deps): bump to go1.24.0 (#521)
* chore(deps): bump to go1.24.0

* use proxy-wasm/proxy-wasm-go-sdk

* remove tinygo

* update docker image

* add missing env

* use go tool directive for mockgen

* chore: bump Kong/ngx_wasm_module to pre-release 0.6.0

Thanks to https://github.com/Kong/ngx_wasm_module/issues/682

* fix go mod

* set caddy to go1.23
2025-03-01 15:12:54 -05:00
dependabot[bot]
f53df0d143 build(deps): bump github.com/valkey-io/valkey-go from 1.0.54 to 1.0.55 (#534)
Bumps [github.com/valkey-io/valkey-go](https://github.com/valkey-io/valkey-go) from 1.0.54 to 1.0.55.
- [Release notes](https://github.com/valkey-io/valkey-go/releases)
- [Commits](https://github.com/valkey-io/valkey-go/compare/v1.0.54...v1.0.55)

---
updated-dependencies:
- dependency-name: github.com/valkey-io/valkey-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-26 00:47:52 -05:00
dependabot[bot]
22b5457525 build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#533)
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-26 00:47:41 -05:00
Alexis Couvreur
f7813a23f3 ci: remove stale workflow 2025-02-23 17:37:43 -05:00
Alexis Couvreur
101b4b9cff ci: remove plugins workflow on main and beta 2025-02-23 17:37:22 -05:00
Alexis Couvreur
731a21c0b8 test(swarm): fix race condition (#532) 2025-02-23 17:27:26 -05:00
Alexis Couvreur
38be0bc145 chore: add CODEOWNERS file (#531) 2025-02-23 16:55:09 -05:00
semantic-release-bot
bb9d95ed8c docs(release): update doc version from 1.8.4 to 1.8.5 v1.8.5 2025-02-20 13:08:38 +00:00
Bob Dobba
ee878e5be9 fix: apply default session duration for blocking strategy (#527) 2025-02-20 08:07:53 -05:00
dependabot[bot]
b196b2fbf4 build(deps): bump the k8s-io group across 1 directory with 3 updates (#522)
Bumps the k8s-io group with 2 updates in the / directory: [k8s.io/api](https://github.com/kubernetes/api) and [k8s.io/client-go](https://github.com/kubernetes/client-go).


Updates `k8s.io/api` from 0.32.1 to 0.32.2
- [Commits](https://github.com/kubernetes/api/compare/v0.32.1...v0.32.2)

Updates `k8s.io/apimachinery` from 0.32.1 to 0.32.2
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.32.1...v0.32.2)

Updates `k8s.io/client-go` from 0.32.1 to 0.32.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.32.1...v0.32.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-14 19:00:38 -05:00
Alexis Couvreur
610d7c0a10 ci(build): add codecov (#518)
* ci(build): add codecov

* add missing id-token permission
2025-02-09 21:18:50 -05:00
Alexis Couvreur
35a8b07c20 refactor(provider): move app/providers to pkg/provider (#517) 2025-02-09 21:10:53 -05:00
semantic-release-bot
2b4ba7f3ce docs(release): update doc version from 1.8.3 to 1.8.4 v1.8.4 2025-02-09 16:01:12 +00:00
Alexis Couvreur
bac489ba5e fix: bump to Go 1.23.6 (#516)
* chore(deps): bump to go1.23.6

* go work sync

* sync

* test(swarm): do not close channel to prevent log after test end

* bump caddy version dockerfile
2025-02-09 11:00:28 -05:00
dependabot[bot]
c414ef3020 build(deps): bump github.com/caddyserver/caddy/v2 in /plugins/caddy (#485)
Bumps [github.com/caddyserver/caddy/v2](https://github.com/caddyserver/caddy) from 2.8.4 to 2.9.1.
- [Release notes](https://github.com/caddyserver/caddy/releases)
- [Changelog](https://github.com/caddyserver/caddy/blob/master/.goreleaser.yml)
- [Commits](https://github.com/caddyserver/caddy/compare/v2.8.4...v2.9.1)

---
updated-dependencies:
- dependency-name: github.com/caddyserver/caddy/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-09 10:19:18 -05:00
dependabot[bot]
0739c4b9ba build(deps): bump nginx in /plugins/traefik/e2e/kubernetes/manifests (#515)
Bumps nginx from 1.27.3 to 1.27.4.

---
updated-dependencies:
- dependency-name: nginx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-09 10:18:59 -05:00
dependabot[bot]
c1faec59ce build(deps): bump nginx (#514)
Bumps nginx from 1.27.3 to 1.27.4.

---
updated-dependencies:
- dependency-name: nginx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-09 10:18:48 -05:00
dependabot[bot]
d821dcffc0 build(deps): bump nginx in /plugins/nginx/e2e/kubernetes/manifests (#513)
Bumps nginx from 1.27.3 to 1.27.4.

---
updated-dependencies:
- dependency-name: nginx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-09 10:18:38 -05:00
Alexis Couvreur
d62db8ba36 chore(dependabot): use group for k8s.io packages (#510) 2025-02-09 10:12:56 -05:00
Alexis Couvreur
1c8cc103ee chore(docker): add a warning log when the container has no healthcheck defined (#508)
When no healthcheck is defined, Sablier will cannot properly detect when the targeted container is able to handle requests yet. If your container startup period is more than 1 second, you're likely to experience issues and a healthcheck is recommended.
2025-02-09 10:12:39 -05:00
Alexis Couvreur
ee949d916f ci: add concurrency group to cancel stale jobs (#509) 2025-02-09 10:09:10 -05:00
Alexis Couvreur
8844a36e4a refactor(logging): use slog instead of logrus (#501)
Everything uses slog now and the logger is part of every struct
2025-02-02 23:01:51 -05:00
Alexis Couvreur
f29b13a55a refactor(storage): add store.Store interface
There is a first implementation with ValKey that will allow to use redis APIs as a backend for Sablier with Hight Availability
2025-02-02 18:13:45 -05:00
Alexis Couvreur
357a7a7b18 test(api): add test theme not found 2025-02-02 09:39:17 -05:00
dependabot[bot]
0eb92edcca build(deps): bump golang.org/x/net from 0.26.0 to 0.33.0 (#495)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.26.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.26.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 09:15:42 -05:00
Alexis Couvreur
9eb090291b docs: use official logo 2025-02-02 00:42:33 -05:00
dependabot[bot]
03def331d7 build(deps): bump github.com/golang/glog in /plugins/caddy (#492)
Bumps [github.com/golang/glog](https://github.com/golang/glog) from 1.2.0 to 1.2.4.
- [Release notes](https://github.com/golang/glog/releases)
- [Commits](https://github.com/golang/glog/compare/v1.2.0...v1.2.4)

---
updated-dependencies:
- dependency-name: github.com/golang/glog
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 00:08:32 -05:00