Skip to content

Commit

Permalink
Update golang to 1.22.2 (#374)
Browse files Browse the repository at this point in the history
* update golang to 1.22.2

Signed-off-by: Akash Gautam <[email protected]>

* fix lint test failures port golang 1.22.2 upgrade

Signed-off-by: Akash Gautam <[email protected]>

---------

Signed-off-by: Akash Gautam <[email protected]>
  • Loading branch information
akash-gautam authored Apr 10, 2024
1 parent c9f317f commit 816dfd4
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
run:
deadline: 20m
timeout: 20m
issues-exit-code: 1
skip-dirs:
- hack
- vendor
skip-files:
- zz_generated.*.go

linters:
enable:
Expand Down Expand Up @@ -78,3 +73,8 @@ linters-settings:
issues:
exclude:
- "cyclomatic complexity 32 of func `GenerateOperatingSystemConfig` is high"
exclude-dirs:
- hack
- vendor
exclude-files:
- zz_generated.*.go
4 changes: 2 additions & 2 deletions .prow/postsubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ postsubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-kind-0.22-5
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-3
command:
- /bin/bash
- -c
Expand All @@ -53,7 +53,7 @@ postsubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-kind-0.22-5
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-3
command:
- "./hack/ci/upload-gocache.sh"
resources:
Expand Down
18 changes: 9 additions & 9 deletions .prow/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-5
- image: quay.io/kubermatic/build:go-1.22-node-20-3
command:
- make
args:
Expand All @@ -36,7 +36,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-5
- image: quay.io/kubermatic/build:go-1.22-node-20-3
command:
- make
args:
Expand All @@ -58,7 +58,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-5
- image: quay.io/kubermatic/build:go-1.22-node-20-3
command:
- make
args:
Expand All @@ -79,7 +79,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-5
- image: quay.io/kubermatic/build:go-1.22-node-20-3
command:
- ./hack/verify-licenses.sh
resources:
Expand All @@ -95,7 +95,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-5
- image: quay.io/kubermatic/build:go-1.22-node-20-3
command:
- make
args:
Expand All @@ -115,7 +115,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-5
- image: quay.io/kubermatic/build:go-1.22-node-20-3
command:
- make
args:
Expand All @@ -130,7 +130,7 @@ presubmits:
clone_uri: "ssh://[email protected]/kubermatic/operating-system-manager.git"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-5
- image: quay.io/kubermatic/build:go-1.22-node-20-3
command:
- shfmt
args:
Expand Down Expand Up @@ -161,7 +161,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-5
- image: quay.io/kubermatic/build:go-1.22-node-20-3
command:
- make
args:
Expand All @@ -182,7 +182,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.22-node-18-kind-0.22-5
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-3
command:
- "./hack/ci/run-e2e-tests.sh"
resources:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG GO_VERSION=1.22.1
ARG GO_VERSION=1.22.2
FROM golang:${GO_VERSION} AS builder
WORKDIR /go/src/k8c.io/operating-system-manager
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export GO111MODULE=on
export GOFLAGS?=-mod=readonly -trimpath
export GIT_TAG ?= $(shell git tag --points-at HEAD)

GO_VERSION = 1.22.1
GO_VERSION = 1.22.2

CMD = $(notdir $(wildcard ./cmd/*))
BUILD_DEST ?= _build
Expand Down
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail
cd $(dirname $0)/..
source hack/lib.sh

CONTAINERIZE_IMAGE=quay.io/kubermatic/build:go-1.22-node-18-5 containerize ./hack/update-codegen.sh
CONTAINERIZE_IMAGE=quay.io/kubermatic/build:go-1.22-node-20-3 containerize ./hack/update-codegen.sh
SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")

sed="sed"
Expand Down
2 changes: 1 addition & 1 deletion hack/update-crds-openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail
cd $(dirname $0)/..
source hack/lib.sh

CONTAINERIZE_IMAGE=quay.io/kubermatic/build:go-1.22-node-18-5 containerize ./hack/update-crds-openapi.sh
CONTAINERIZE_IMAGE=quay.io/kubermatic/build:go-1.22-node-20-3 containerize ./hack/update-crds-openapi.sh
SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")

echodate "Creating vendor directory"
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-licenses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail
cd $(dirname $0)/..
source hack/lib.sh

CONTAINERIZE_IMAGE=quay.io/kubermatic/build:go-1.22-node-18-5 containerize ./hack/verify-licenses.sh
CONTAINERIZE_IMAGE=quay.io/kubermatic/build:go-1.22-node-20-3 containerize ./hack/verify-licenses.sh

go mod vendor

Expand Down

0 comments on commit 816dfd4

Please sign in to comment.