From 60aea576dc3ddf11243bab1292e9a071d1222324 Mon Sep 17 00:00:00 2001 From: Adora Laura Kalb Date: Fri, 12 Jul 2024 17:31:44 +0200 Subject: [PATCH] remove sentry remnants --- cmd/certwarden-deploy/root.go | 3 --- go.mod | 3 --- go.sum | 6 ------ internal/configuration/models.go | 5 ----- 4 files changed, 17 deletions(-) diff --git a/cmd/certwarden-deploy/root.go b/cmd/certwarden-deploy/root.go index b1c5a60..6bbbceb 100644 --- a/cmd/certwarden-deploy/root.go +++ b/cmd/certwarden-deploy/root.go @@ -6,11 +6,9 @@ package cmd import ( "os" - "time" "code.lila.network/adoralaura/certwarden-deploy/internal/cli" "code.lila.network/adoralaura/certwarden-deploy/internal/configuration" - "github.com/getsentry/sentry-go" ) // Execute adds all child commands to the root command and sets flags appropriately. @@ -20,7 +18,6 @@ func Execute() { if err != nil { os.Exit(1) } - defer sentry.Flush(2 * time.Second) } func init() { diff --git a/go.mod b/go.mod index 3bf302f..3be14ba 100644 --- a/go.mod +++ b/go.mod @@ -8,11 +8,8 @@ require ( ) require ( - github.com/getsentry/sentry-go v0.28.1 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect ) diff --git a/go.sum b/go.sum index 56d1597..66ad4e7 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/getsentry/sentry-go v0.28.1 h1:zzaSm/vHmGllRM6Tpx1492r0YDzauArdBfkJRtY6P5k= -github.com/getsentry/sentry-go v0.28.1/go.mod h1:1fQZ+7l7eeJ3wYi82q5Hg8GqAPgefRq+FP/QhafYVgg= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -16,10 +14,6 @@ github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/internal/configuration/models.go b/internal/configuration/models.go index d63f2c2..8fb7dd5 100644 --- a/internal/configuration/models.go +++ b/internal/configuration/models.go @@ -24,7 +24,6 @@ var Force bool type ConfigFileData struct { BaseURL string `yaml:"base_url"` DisableCertificateValidation bool `yaml:"disable_certificate_validation"` - Sentry SentryData `yaml:"sentry,omitempty"` Certificates []CertificateData `yaml:"certificates"` } @@ -38,10 +37,6 @@ type CertificateData struct { Action string `yaml:"action"` } -type SentryData struct { - DSN string `yaml:"dsn"` -} - type ConfigValidationError struct { ErrorMessages []string }