From f2cfd72f5e7fdc451f7c66336fce4a41007c1b6e Mon Sep 17 00:00:00 2001 From: Helen Liu Date: Mon, 27 Feb 2023 13:00:12 -0500 Subject: [PATCH] Bump go version to 1.20.1 for prometheus-to-sd --- prometheus-to-sd/Dockerfile | 2 +- prometheus-to-sd/Makefile | 2 +- prometheus-to-sd/go.mod | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/prometheus-to-sd/Dockerfile b/prometheus-to-sd/Dockerfile index cecc1b514..0ce332130 100644 --- a/prometheus-to-sd/Dockerfile +++ b/prometheus-to-sd/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM --platform=$BUILDPLATFORM golang:1.17-alpine as builder +FROM --platform=$BUILDPLATFORM golang:1.20.1 as builder WORKDIR ${GOPATH}/src/github.com/GoogleCloudPlatform/k8s-stackdriver/prometheus-to-sd COPY . ./ diff --git a/prometheus-to-sd/Makefile b/prometheus-to-sd/Makefile index f1a8c1135..91e32efd2 100644 --- a/prometheus-to-sd/Makefile +++ b/prometheus-to-sd/Makefile @@ -18,7 +18,7 @@ ENVVAR = GOOS=linux GOARCH=amd64 CGO_ENABLED=0 IMAGE_NAME=prometheus-to-sd ALL_ARCH=amd64 arm64 PREFIX ?= staging-k8s.gcr.io -TAG ?= v0.11.5 +TAG ?= v0.11.6 IMAGE=$(PREFIX)/$(IMAGE_NAME) diff --git a/prometheus-to-sd/go.mod b/prometheus-to-sd/go.mod index 874b8e757..7b053b45c 100644 --- a/prometheus-to-sd/go.mod +++ b/prometheus-to-sd/go.mod @@ -1,6 +1,6 @@ module github.com/GoogleCloudPlatform/k8s-stackdriver/prometheus-to-sd -go 1.17 +go 1.20 require ( cloud.google.com/go v0.56.0