From f8d1857345c72042bbd645b16f9eab2c802f9317 Mon Sep 17 00:00:00 2001 From: Yang Le Date: Fri, 28 Oct 2022 17:01:45 +0800 Subject: [PATCH] upgrade to golang1.19 (#163) Signed-off-by: Yang Le Signed-off-by: Yang Le --- .github/workflows/go-postsubmit.yml | 2 +- .github/workflows/go-presubmit.yml | 2 +- .github/workflows/go-release.yml | 2 +- Dockerfile | 2 +- go.mod | 2 +- test/e2e/suite_test.go | 8 ++++---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/go-postsubmit.yml b/.github/workflows/go-postsubmit.yml index b9a4fbc29..d920926d3 100644 --- a/.github/workflows/go-postsubmit.yml +++ b/.github/workflows/go-postsubmit.yml @@ -8,7 +8,7 @@ on: env: # Common versions - GO_VERSION: '1.18' + GO_VERSION: '1.19' GO_REQUIRED_MIN_VERSION: '' GOPATH: '/home/runner/work/work/work/go' defaults: diff --git a/.github/workflows/go-presubmit.yml b/.github/workflows/go-presubmit.yml index f39d96767..53412c77f 100644 --- a/.github/workflows/go-presubmit.yml +++ b/.github/workflows/go-presubmit.yml @@ -9,7 +9,7 @@ on: env: # Common versions - GO_VERSION: '1.18' + GO_VERSION: '1.19' GO_REQUIRED_MIN_VERSION: '' GOPATH: '/home/runner/work/work/work/go' defaults: diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index bc2fc0619..41d0b8a40 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -6,7 +6,7 @@ on: - 'v*.*.*' env: # Common versions - GO_VERSION: '1.18' + GO_VERSION: '1.19' GO_REQUIRED_MIN_VERSION: '' GOPATH: '/home/runner/work/work/work/go' GITHUB_REF: ${{ github.ref }} diff --git a/Dockerfile b/Dockerfile index eec25ff7c..0c0974902 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.18 AS builder +FROM golang:1.19 AS builder ARG OS=linux ARG ARCH=amd64 WORKDIR /go/src/open-cluster-management.io/work diff --git a/go.mod b/go.mod index ef061992e..ced0744a0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module open-cluster-management.io/work -go 1.18 +go 1.19 require ( github.com/davecgh/go-spew v1.1.1 diff --git a/test/e2e/suite_test.go b/test/e2e/suite_test.go index 6c4940482..442d54a24 100644 --- a/test/e2e/suite_test.go +++ b/test/e2e/suite_test.go @@ -43,10 +43,10 @@ func TestE2e(t *testing.T) { // This suite is sensitive to the following environment variables: // -// - IMAGE_NAME sets the exact image to deploy for the work agent -// - IMAGE_REGISTRY sets the image registry to use to build the IMAGE_NAME if -// IMAGE_NAME is unset: IMAGE_REGISTRY/work:latest -// - KUBECONFIG is the location of the kubeconfig file to use +// - IMAGE_NAME sets the exact image to deploy for the work agent +// - IMAGE_REGISTRY sets the image registry to use to build the IMAGE_NAME if +// IMAGE_NAME is unset: IMAGE_REGISTRY/work:latest +// - KUBECONFIG is the location of the kubeconfig file to use var _ = ginkgo.BeforeSuite(func() { logf.SetLogger(zap.New(zap.WriteTo(ginkgo.GinkgoWriter), zap.UseDevMode(true))) workImage = os.Getenv("IMAGE_NAME")