feat(osiris): reload config upon SIGHUP

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-07-18 23:52:06 +00:00
parent 9a711f1635
commit 89b6af05a3
4 changed files with 62 additions and 21 deletions

View File

@@ -24,7 +24,7 @@ func TestBindValid(t *testing.T) {
err: nil,
},
{
name: "reused ports",
name: "invalid ports",
precondition: func(t *testing.T) {
ln, err := net.Listen("tcp", ":8081")
if err != nil {
@@ -33,11 +33,11 @@ func TestBindValid(t *testing.T) {
t.Cleanup(func() { ln.Close() })
},
bind: Bind{
HTTP: ":8081",
HTTPS: ":8081",
Metrics: ":8081",
HTTP: "",
HTTPS: "",
Metrics: "",
},
err: ErrCantBindToPort,
err: ErrInvalidHostpost,
},
} {
t.Run(tt.name, func(t *testing.T) {