Skip to content

Commit

Permalink
Upgrade integrations SDK (NR-302384) (#108)
Browse files Browse the repository at this point in the history
* upgrade infra-sdk to a compatible v3 version

* add entry to changelog

* go mod tidy

* go upgrade to 1.23.2

* add entry to changelog for go 1.22.3
  • Loading branch information
kang-makes authored Oct 4, 2024
1 parent f285d06 commit 39116f6
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 41 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ Unreleased section should follow [Release Toolkit](https://github.com/newrelic/r

## Unreleased

### dependency

- Upgrade go to 1.23.2

### enhancements

- Upgrade integrations SDK so the interval is variable and allows intervals up to 5 minutes

## v2.7.7 - 2024-09-12

### ⛓️ Dependencies
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.1-bookworm
FROM golang:1.23.2-bookworm

ARG GH_VERSION='1.9.2'

Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
module github.com/newrelic/nri-f5

go 1.23.1
go 1.23.2

require (
github.com/newrelic/infra-integrations-sdk v3.8.2+incompatible
github.com/newrelic/infra-integrations-sdk/v3 v3.9.1
github.com/stretchr/testify v1.9.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
12 changes: 2 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/newrelic/infra-integrations-sdk v3.7.3+incompatible h1:+o/MxTzFsC3BRVKpkw1pXer9Nja2mxWNbV9GfH7iKBc=
github.com/newrelic/infra-integrations-sdk v3.7.3+incompatible/go.mod h1:tMUHRMq6mJS0YyBnbWrTXAnREnQqC1AGO6Lu45u5xAM=
github.com/newrelic/infra-integrations-sdk v3.8.0+incompatible h1:QvwHLsgHyGw4ZULOSnnWQnVPE744K1eda+2XLp2eHtg=
github.com/newrelic/infra-integrations-sdk v3.8.0+incompatible/go.mod h1:tMUHRMq6mJS0YyBnbWrTXAnREnQqC1AGO6Lu45u5xAM=
github.com/newrelic/infra-integrations-sdk v3.8.2+incompatible h1:Ktcm1aPAl7CW3o+FXAIKJ+jygWVXDXaUIWFyf2CXQTk=
github.com/newrelic/infra-integrations-sdk v3.8.2+incompatible/go.mod h1:tMUHRMq6mJS0YyBnbWrTXAnREnQqC1AGO6Lu45u5xAM=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/newrelic/infra-integrations-sdk/v3 v3.9.1 h1:dCtVLsYNHWTQ5aAlAaHroomOUlqxlGTrdi6XTlvBDfI=
github.com/newrelic/infra-integrations-sdk/v3 v3.9.1/go.mod h1:yPeidhcq9Cla0QDquGXH0KqvS2k9xtetFOD7aLA0Z8M=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
Expand Down
2 changes: 1 addition & 1 deletion src/arguments/arguments.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"strings"

sdkArgs "github.com/newrelic/infra-integrations-sdk/args"
sdkArgs "github.com/newrelic/infra-integrations-sdk/v3/args"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion src/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

nrHttp "github.com/newrelic/infra-integrations-sdk/http"
nrHttp "github.com/newrelic/infra-integrations-sdk/v3/http"
"github.com/newrelic/nri-f5/src/arguments"
)

Expand Down
4 changes: 2 additions & 2 deletions src/entities/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package entities
import (
"sync"

"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/log"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/infra-integrations-sdk/v3/log"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/newrelic/nri-f5/src/definition"
Expand Down
2 changes: 1 addition & 1 deletion src/entities/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"testing"

"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/stretchr/testify/assert"
Expand Down
6 changes: 3 additions & 3 deletions src/entities/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package entities
import (
"sync"

"github.com/newrelic/infra-integrations-sdk/data/attribute"
"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/log"
"github.com/newrelic/infra-integrations-sdk/v3/data/attribute"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/infra-integrations-sdk/v3/log"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/newrelic/nri-f5/src/definition"
Expand Down
2 changes: 1 addition & 1 deletion src/entities/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"testing"

"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/stretchr/testify/assert"
Expand Down
6 changes: 3 additions & 3 deletions src/entities/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package entities
import (
"sync"

"github.com/newrelic/infra-integrations-sdk/data/attribute"
"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/log"
"github.com/newrelic/infra-integrations-sdk/v3/data/attribute"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/infra-integrations-sdk/v3/log"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/newrelic/nri-f5/src/definition"
Expand Down
6 changes: 3 additions & 3 deletions src/entities/pool_member.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"regexp"
"strings"

"github.com/newrelic/infra-integrations-sdk/data/attribute"
"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/log"
"github.com/newrelic/infra-integrations-sdk/v3/data/attribute"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/infra-integrations-sdk/v3/log"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/newrelic/nri-f5/src/definition"
Expand Down
2 changes: 1 addition & 1 deletion src/entities/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"testing"

"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/stretchr/testify/assert"
Expand Down
8 changes: 4 additions & 4 deletions src/entities/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"strings"
"sync"

"github.com/newrelic/infra-integrations-sdk/data/attribute"
"github.com/newrelic/infra-integrations-sdk/data/metric"
"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/log"
"github.com/newrelic/infra-integrations-sdk/v3/data/attribute"
"github.com/newrelic/infra-integrations-sdk/v3/data/metric"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/infra-integrations-sdk/v3/log"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/newrelic/nri-f5/src/definition"
Expand Down
2 changes: 1 addition & 1 deletion src/entities/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"testing"

"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/stretchr/testify/assert"
Expand Down
6 changes: 3 additions & 3 deletions src/entities/virtual_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package entities
import (
"sync"

"github.com/newrelic/infra-integrations-sdk/data/attribute"
"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/log"
"github.com/newrelic/infra-integrations-sdk/v3/data/attribute"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/infra-integrations-sdk/v3/log"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/newrelic/nri-f5/src/definition"
Expand Down
2 changes: 1 addition & 1 deletion src/entities/virtual_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"testing"

"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions src/f5.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strings"
"sync"

"github.com/newrelic/infra-integrations-sdk/integration"
"github.com/newrelic/infra-integrations-sdk/log"
"github.com/newrelic/infra-integrations-sdk/v3/integration"
"github.com/newrelic/infra-integrations-sdk/v3/log"
"github.com/newrelic/nri-f5/src/arguments"
"github.com/newrelic/nri-f5/src/client"
"github.com/newrelic/nri-f5/src/entities"
Expand Down

0 comments on commit 39116f6

Please sign in to comment.