From ba32d3ba319c3d822b06fd5838dc0dc9706b815b Mon Sep 17 00:00:00 2001 From: Daniel Reuter Date: Tue, 12 Nov 2024 14:40:10 +0100 Subject: [PATCH] feat: use signal handler mechanism from extension-kit --- go.mod | 6 +++--- go.sum | 12 ++++++------ main.go | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index c365184..d37be34 100644 --- a/go.mod +++ b/go.mod @@ -11,13 +11,13 @@ require ( github.com/kelseyhightower/envconfig v1.4.0 github.com/rs/zerolog v1.33.0 github.com/steadybit/action-kit/go/action_kit_api/v2 v2.9.4 - github.com/steadybit/action-kit/go/action_kit_sdk v1.1.12 + github.com/steadybit/action-kit/go/action_kit_sdk v1.1.14 github.com/steadybit/action-kit/go/action_kit_test v1.3.0 github.com/steadybit/discovery-kit/go/discovery_kit_api v1.6.0 github.com/steadybit/discovery-kit/go/discovery_kit_commons v0.2.0 github.com/steadybit/discovery-kit/go/discovery_kit_sdk v1.2.1 github.com/steadybit/discovery-kit/go/discovery_kit_test v1.1.2 - github.com/steadybit/extension-kit v1.8.21 + github.com/steadybit/extension-kit v1.8.22 github.com/stretchr/testify v1.9.0 go.uber.org/automaxprocs v1.6.0 ) @@ -84,7 +84,7 @@ require ( golang.org/x/net v0.30.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.27.0 // indirect golang.org/x/term v0.25.0 // indirect golang.org/x/text v0.19.0 // indirect golang.org/x/time v0.7.0 // indirect diff --git a/go.sum b/go.sum index e6b25df..6f99f4a 100644 --- a/go.sum +++ b/go.sum @@ -189,8 +189,8 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= github.com/steadybit/action-kit/go/action_kit_api/v2 v2.9.4 h1:imlfn0m5FEwZ3/ad75TgI5DoGQD4ztnSoLfPR4afqUY= github.com/steadybit/action-kit/go/action_kit_api/v2 v2.9.4/go.mod h1:ycF2RLgRsB8I/jD52aE+dKZKVru1GIEtmkcRcIR3vXk= -github.com/steadybit/action-kit/go/action_kit_sdk v1.1.12 h1:qHgEHBbp83QxVoS9UuBc9EDbBkAyF8UWhDG0/VwoYYQ= -github.com/steadybit/action-kit/go/action_kit_sdk v1.1.12/go.mod h1:D8eHLbT+C797myIwacybsz0bqDfS1ShpIzjr+eSweX0= +github.com/steadybit/action-kit/go/action_kit_sdk v1.1.14 h1:x94RX+vh9Iyc0tS6BhiSpvknj+xE36AV0Nc3D5Yuub0= +github.com/steadybit/action-kit/go/action_kit_sdk v1.1.14/go.mod h1:Tp/klK5b7k+BCvb3JTSDZSNcnpFBaHauhndzOarnMW4= github.com/steadybit/action-kit/go/action_kit_test v1.3.0 h1:PZ8BfKQyFlFmbOcrp0PKHjHFT3S8y3mOBTGo/mGQcAE= github.com/steadybit/action-kit/go/action_kit_test v1.3.0/go.mod h1:R4L0LaZ60cE/pUOOrl3FoFgXNF1jT1tfQOWqJRdszbg= github.com/steadybit/discovery-kit/go/discovery_kit_api v1.6.0 h1:q24S067wJ7uUZsi9LcccDJIEdsk9Ikss15hbqAt/OuE= @@ -201,8 +201,8 @@ github.com/steadybit/discovery-kit/go/discovery_kit_sdk v1.2.1 h1:M2OX0sMGE+CnSB github.com/steadybit/discovery-kit/go/discovery_kit_sdk v1.2.1/go.mod h1:dEJgg7BcW0E8pGMjpqtDU7m0lN6d38ievgFEUG39cxE= github.com/steadybit/discovery-kit/go/discovery_kit_test v1.1.2 h1:IrTUwb69FDwOt/8OvY1Lvhv+qGNmy+Eu53HEjmsj0TA= github.com/steadybit/discovery-kit/go/discovery_kit_test v1.1.2/go.mod h1:tr4oRjpqr2WOKwO4auJR+/m+YKA2EAUuvvpbz1faUxw= -github.com/steadybit/extension-kit v1.8.21 h1:/VLrfI8lYKr6rM76PE15jhou51td8FAzkyP5zKnyjjg= -github.com/steadybit/extension-kit v1.8.21/go.mod h1:Ym+tCgtMCcTw7iv/aPwB64E4/2WT8gsfYUIyb3kx+9g= +github.com/steadybit/extension-kit v1.8.22 h1:rowDG0kBeTQi+lB9vGxi08HH6E+dEJ8vLjyKYREh9Bs= +github.com/steadybit/extension-kit v1.8.22/go.mod h1:Ym+tCgtMCcTw7iv/aPwB64E4/2WT8gsfYUIyb3kx+9g= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= @@ -254,8 +254,8 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= +golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/main.go b/main.go index e9bd52d..36da5b8 100644 --- a/main.go +++ b/main.go @@ -58,7 +58,7 @@ func main() { action_kit_sdk.RegisterAction(extscalesetinstance.NewScaleSetInstanceStateAction()) //This will install a signal handlder, that will stop active actions when receiving a SIGURS1, SIGTERM or SIGINT - action_kit_sdk.InstallSignalHandler() + extsignals.ActivateSignalHandlers() //This will register the coverage endpoints for the extension (used by action_kit_test) action_kit_sdk.RegisterCoverageEndpoints()