diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 44ecc8a..cc68a4a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,5 +8,5 @@ jobs: - uses: actions/checkout@master - uses: actions/setup-go@v2 with: - go-version: "1.16" + go-version: "1.21" - run: go test . diff --git a/Dockerfile b/Dockerfile index 68ae723..94e26e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.16-alpine +FROM golang:1.21-alpine3.18 WORKDIR /src RUN apk --no-cache add git COPY main.go go.mod go.sum ./ @@ -7,4 +7,4 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /bin/prometheus-msk-discovery . FROM alpine:latest RUN apk --no-cache add ca-certificates COPY --from=0 /bin/prometheus-msk-discovery /bin/ -ENTRYPOINT ["prometheus-msk-discovery"] \ No newline at end of file +ENTRYPOINT ["prometheus-msk-discovery"] diff --git a/go.mod b/go.mod index 7444484..3db2077 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,19 @@ module github.com/statsbomb/prometheus-msk-discovery -go 1.16 +go 1.21 require ( github.com/aws/aws-sdk-go-v2/config v1.1.4 github.com/aws/aws-sdk-go-v2/service/kafka v1.2.1 gopkg.in/yaml.v2 v2.4.0 ) + +require ( + github.com/aws/aws-sdk-go-v2 v1.3.1 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.1.4 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.1.4 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.2.1 // indirect + github.com/aws/smithy-go v1.3.0 // indirect +) diff --git a/go.sum b/go.sum index cf4d9b0..aff021e 100644 --- a/go.sum +++ b/go.sum @@ -17,12 +17,15 @@ github.com/aws/aws-sdk-go-v2/service/sts v1.2.1/go.mod h1:L1LH5nHMXxdkKj057ZUx7W github.com/aws/smithy-go v1.3.0 h1:awbB2OJBZ/Txj+c4q+qhDQs3Ob0sRhBuIIkOD4Aq8yc= github.com/aws/smithy-go v1.3.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=