Skip to content

Commit 6a1dbf5

Browse files
authored
Vendor Updates, Go version Update (#99)
* bump vendor deps Signed-off-by: John Seekins <[email protected]> * update go versions, fix a few bugs in tests, and use buildx for build (better logging0 Signed-off-by: John Seekins <[email protected]> Signed-off-by: John Seekins <[email protected]>
1 parent 7154290 commit 6a1dbf5

File tree

1,015 files changed

+113976
-94239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,015 files changed

+113976
-94239
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17.5-alpine3.15 as build
1+
FROM golang:1.19.1-alpine as build
22
WORKDIR /src/prometheus-kafka-adapter
33

44
COPY go.mod go.sum vendor *.go ./
@@ -8,7 +8,7 @@ ADD . /src/prometheus-kafka-adapter
88
RUN apk add --no-cache gcc musl-dev
99
RUN go build -ldflags='-w -s -extldflags "-static"' -tags musl,static,netgo -mod=vendor -o /prometheus-kafka-adapter
1010

11-
FROM alpine:3.15
11+
FROM alpine:3.16
1212

1313
COPY schemas/metric.avsc /schemas/metric.avsc
1414
COPY --from=build /prometheus-kafka-adapter /

Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NAME := prometheus-kafka-adapter
22
PACKAGE_NAME := github.com/Telefonica/prometheus-kafka-adapter
3-
GO_VER := 1.17.5
3+
GO_VER := 1.19.1
44
LIBC_GO_VER := $(GO_VER)-buster
55
MUSL_GO_VER := $(GO_VER)-alpine
66

@@ -22,13 +22,9 @@ build-musl:
2222
docker run --rm -v $(CURDIR):/app:z -w /app golang:$(MUSL_GO_VER) sh tools/buildscript.sh $(NAME)
2323

2424
build-docker-image:
25-
docker build -t telefonica/prometheus-kafka-adapter:latest .
25+
docker buildx build -t telefonica/prometheus-kafka-adapter:latest .
2626

2727
vendor-update:
28-
rm -rf go.mod go.sum vendor/
29-
docker run --rm -v $(CURDIR):/app:z -w /app golang:$(MUSL_GO_VER) go mod init $(PACKAGE_NAME)
30-
docker run --rm -v $(CURDIR):/app:z -w /app golang:$(MUSL_GO_VER) go mod tidy
31-
docker run --rm -v $(CURDIR):/app:z -w /app golang:$(MUSL_GO_VER) apk add --no-cache gcc musl-dev && go mod vendor
32-
28+
docker run --rm -e PACKAGE_NAME=$(PACKAGE_NAME) -v $(CURDIR):/app:z -w /app golang:$(MUSL_GO_VER) sh tools/vendorscript.sh
3329
clean:
3430
rm -f $(NAME)-libc $(NAME)-musl

go.mod

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,46 @@ module github.com/Telefonica/prometheus-kafka-adapter
33
go 1.17
44

55
require (
6-
github.com/confluentinc/confluent-kafka-go v1.8.2
6+
github.com/confluentinc/confluent-kafka-go v1.9.2
77
github.com/gin-gonic/contrib v0.0.0-20201101042839-6a891bf89f19
8-
github.com/gin-gonic/gin v1.7.7
8+
github.com/gin-gonic/gin v1.8.1
99
github.com/gogo/protobuf v1.3.2
1010
github.com/golang/snappy v0.0.4
1111
github.com/linkedin/goavro v2.1.0+incompatible
12-
github.com/prometheus/client_golang v1.11.0
12+
github.com/prometheus/client_golang v1.13.0
1313
github.com/prometheus/client_model v0.2.0
14-
github.com/prometheus/common v0.32.1
15-
github.com/prometheus/prometheus v2.5.0+incompatible
16-
github.com/sirupsen/logrus v1.8.1
17-
github.com/stretchr/testify v1.7.0
14+
github.com/prometheus/common v0.37.0
15+
github.com/prometheus/prometheus v0.38.0
16+
github.com/sirupsen/logrus v1.9.0
17+
github.com/stretchr/testify v1.8.0
1818
gopkg.in/yaml.v2 v2.4.0
1919
)
2020

2121
require (
2222
github.com/beorn7/perks v1.0.1 // indirect
23-
github.com/cespare/xxhash/v2 v2.1.1 // indirect
23+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
2424
github.com/davecgh/go-spew v1.1.1 // indirect
2525
github.com/gin-contrib/sse v0.1.0 // indirect
26-
github.com/go-playground/locales v0.13.0 // indirect
27-
github.com/go-playground/universal-translator v0.17.0 // indirect
28-
github.com/go-playground/validator/v10 v10.4.1 // indirect
29-
github.com/golang/protobuf v1.4.3 // indirect
30-
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
31-
github.com/json-iterator/go v1.1.11 // indirect
32-
github.com/leodido/go-urn v1.2.0 // indirect
33-
github.com/mattn/go-isatty v0.0.12 // indirect
34-
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
26+
github.com/go-playground/locales v0.14.0 // indirect
27+
github.com/go-playground/universal-translator v0.18.0 // indirect
28+
github.com/go-playground/validator/v10 v10.10.0 // indirect
29+
github.com/goccy/go-json v0.9.7 // indirect
30+
github.com/golang/protobuf v1.5.2 // indirect
31+
github.com/json-iterator/go v1.1.12 // indirect
32+
github.com/leodido/go-urn v1.2.1 // indirect
33+
github.com/mattn/go-isatty v0.0.14 // indirect
34+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
3535
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
36-
github.com/modern-go/reflect2 v1.0.1 // indirect
36+
github.com/modern-go/reflect2 v1.0.2 // indirect
37+
github.com/pelletier/go-toml/v2 v2.0.1 // indirect
3738
github.com/pmezard/go-difflib v1.0.0 // indirect
38-
github.com/prometheus/procfs v0.6.0 // indirect
39-
github.com/ugorji/go/codec v1.1.7 // indirect
40-
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
41-
golang.org/x/net v0.0.0-20210525063256-abc453219eb5 // indirect
42-
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 // indirect
43-
golang.org/x/text v0.3.6 // indirect
44-
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987 // indirect
45-
google.golang.org/grpc v1.33.1 // indirect
46-
google.golang.org/protobuf v1.26.0-rc.1 // indirect
39+
github.com/prometheus/procfs v0.8.0 // indirect
40+
github.com/ugorji/go/codec v1.2.7 // indirect
41+
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
42+
golang.org/x/net v0.0.0-20220809184613-07c6da5e1ced // indirect
43+
golang.org/x/sys v0.0.0-20220808155132-1c4a2a72c664 // indirect
44+
golang.org/x/text v0.3.7 // indirect
45+
google.golang.org/protobuf v1.28.1 // indirect
4746
gopkg.in/linkedin/goavro.v1 v1.0.5 // indirect
48-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
47+
gopkg.in/yaml.v3 v3.0.1 // indirect
4948
)

0 commit comments

Comments
 (0)