Skip to content

Commit c2a8d71

Browse files
K8s/golang/sidecar upgrade 5.1 May'25 (#225)
* sidecar/golang/ks upgrade done Signed-off-by: Meetanshi-Gupta <[email protected]> * Update vendor dependencies Signed-off-by: Meetanshi-Gupta <[email protected]> * lint_version updated Signed-off-by: Meetanshi-Gupta <[email protected]> * fix golangci-lint v2.0.2 warnings Signed-off-by: Meetanshi-Gupta <[email protected]> * build issues fixed Signed-off-by: Meetanshi-Gupta <[email protected]> * Makefile updated Signed-off-by: Meetanshi-Gupta <[email protected]> --------- Signed-off-by: Meetanshi-Gupta <[email protected]>
1 parent d5e8cda commit c2a8d71

File tree

1,924 files changed

+106510
-72433
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,924 files changed

+106510
-72433
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Go
1414
uses: actions/setup-go@v2
1515
with:
16-
go-version: '1.22.0'
16+
go-version: '1.23.8'
1717
- name: Check out code
1818
uses: actions/checkout@v2
1919
with:

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66
- GO111MODULE=on
77

88
go:
9-
- "1.22.0"
9+
- "1.23.8"
1010

1111
before_install:
1212
- go install github.com/mattn/goveralls@latest

Dockerfile.builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22.0
1+
FROM golang:1.23.8
22

33
WORKDIR /go/src/github.com/kubernetes-sigs/ibm-vpc-block-csi-driver
44
ADD . /go/src/github.com/kubernetes-sigs/ibm-vpc-block-csi-driver

Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2021 The Kubernetes Authors.
2+
# Copyright 2025 The Kubernetes Authors.
33

44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ GIT_COMMIT_SHA="$(shell git rev-parse HEAD 2>/dev/null)"
2020
GIT_REMOTE_URL="$(shell git config --get remote.origin.url 2>/dev/null)"
2121
BUILD_DATE="$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")"
2222
OSS_FILES := go.mod Dockerfile
23-
GOLANG_VERSION="1.22.0"
23+
GOLANG_VERSION="1.23.8"
2424

2525

2626
STAGING_REGISTRY ?= gcr.io/k8s-staging-cloud-provider-ibm
@@ -44,7 +44,7 @@ BUILD_NUMBER?=unknown
4444
GO111MODULE_FLAG?=on
4545
export GO111MODULE=$(GO111MODULE_FLAG)
4646

47-
export LINT_VERSION="1.60.1"
47+
LINT_VERSION=v2.0.2
4848

4949
GOFILES=$(shell find . -type f -name '*.go' -not -path "./vendor/*")
5050

@@ -60,28 +60,26 @@ driver: deps buildimage
6060
.PHONY: deps
6161
deps:
6262
echo "Installing dependencies ..."
63-
@if ! which golangci-lint >/dev/null || [[ "$$(golangci-lint --version)" != *${LINT_VERSION}* ]]; then \
64-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${LINT_VERSION}; \
65-
fi
63+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin ${LINT_VERSION}
6664

6765
.PHONY: fmt
6866
fmt: lint
6967
gofmt -l ${GOFILES}
7068

7169
.PHONY: dofmt
72-
dofmt:
70+
dofmt: deps
7371
$(GOPATH)/bin/golangci-lint run --disable-all --enable=gofmt --fix --timeout 600s
7472

7573
.PHONY: lint
76-
lint:
74+
lint: deps
7775
hack/verify-golint.sh
7876

7977
.PHONY: build
8078
build:
8179
CGO_ENABLED=0 GOOS=$(shell go env GOOS) GOARCH=$(shell go env GOARCH) go build -mod=vendor -a -ldflags '-X main.vendorVersion='"${DRIVER_NAME}-${GIT_COMMIT_SHA}"' -extldflags "-static"' -o ${GOPATH}/bin/${EXE_DRIVER_NAME} ./cmd/
8280

8381
.PHONY: verify
84-
verify:
82+
verify: deps
8583
echo "Verifying and linting files ..."
8684
./hack/verify-all.sh
8785
echo "Congratulations! All Go source files have been linted."

deploy/kubernetes/driver/kubernetes/overlays/dev/controller-server-images.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ spec:
77
spec:
88
containers:
99
- name: csi-provisioner
10-
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.2
10+
image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0
1111
- name: csi-attacher
12-
image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1
12+
image: registry.k8s.io/sig-storage/csi-attacher:v4.8.1
1313
- name: liveness-probe
14-
image: registry.k8s.io/sig-storage/csi-attacher:v2.13.1
14+
image: registry.k8s.io/sig-storage/livenessprobe:v2.15.0
1515
- name: iks-vpc-block-driver
1616
imagePullPolicy: Always
1717
image: registry.k8s.io/cloud-provider-ibm/ibm-vpc-block-csi-driver:v0.0.0
1818
- name: csi-resizer
19-
image: registry.k8s.io/sig-storage/csi-resizer:v1.11.2
19+
image: registry.k8s.io/sig-storage/csi-resizer:v1.13.2
2020
- name: csi-snapshotter
21-
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.0.1
21+
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.2.1

deploy/kubernetes/driver/kubernetes/overlays/dev/node-server-images.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ spec:
1010
imagePullPolicy: Always
1111
image: registry.k8s.io/cloud-provider-ibm/ibm-vpc-block-csi-driver:v0.0.0
1212
- name: csi-driver-registrar
13-
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.11.1
13+
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.13.0
1414
- name: liveness-probe
15-
image: registry.k8s.io/sig-storage/csi-attacher:v2.13.1
15+
image: registry.k8s.io/sig-storage/livenessprobe:v2.15.0

deploy/kubernetes/driver/kubernetes/overlays/release/controller-server-images.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ spec:
77
spec:
88
containers:
99
- name: csi-provisioner
10-
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.2
10+
image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0
1111
- name: csi-attacher
12-
image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1
12+
image: registry.k8s.io/sig-storage/csi-attacher:v4.8.1
1313
- name: liveness-probe
14-
image: registry.k8s.io/sig-storage/csi-attacher:v2.13.1
14+
image: registry.k8s.io/sig-storage/livenessprobe:v2.15.0
1515
- name: iks-vpc-block-driver
1616
imagePullPolicy: Always
1717
image: registry.k8s.io/cloud-provider-ibm/ibm-vpc-block-csi-driver:v0.0.0
1818
- name: csi-resizer
19-
image: registry.k8s.io/sig-storage/csi-resizer:v1.11.2
19+
image: registry.k8s.io/sig-storage/csi-resizer:v1.13.2
2020
- name: csi-snapshotter
21-
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.0.1
21+
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.2.1

deploy/kubernetes/driver/kubernetes/overlays/release/node-server-images.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ spec:
1010
imagePullPolicy: Always
1111
image: registry.k8s.io/cloud-provider-ibm/ibm-vpc-block-csi-driver:v0.0.0
1212
- name: csi-driver-registrar
13-
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.11.1
13+
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.13.0
1414
- name: liveness-probe
15-
image: registry.k8s.io/sig-storage/csi-attacher:v2.13.1
15+
image: registry.k8s.io/sig-storage/livenessprobe:v2.15.0

deploy/kubernetes/driver/kubernetes/overlays/stable/controller-server-images.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ spec:
77
spec:
88
containers:
99
- name: csi-provisioner
10-
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.2
10+
image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0
1111
- name: csi-attacher
12-
image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1
12+
image: registry.k8s.io/sig-storage/csi-attacher:v4.8.1
1313
- name: liveness-probe
14-
image: registry.k8s.io/sig-storage/csi-attacher:v2.13.1
14+
image: registry.k8s.io/sig-storage/livenessprobe:v2.15.0
1515
- name: iks-vpc-block-driver
1616
imagePullPolicy: Always
1717
image: registry.k8s.io/cloud-provider-ibm/ibm-vpc-block-csi-driver:v0.0.0
1818
- name: csi-resizer
19-
image: registry.k8s.io/sig-storage/csi-resizer:v1.11.2
19+
image: registry.k8s.io/sig-storage/csi-resizer:v1.13.2
2020
- name: csi-snapshotter
21-
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.0.1
21+
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.2.1

deploy/kubernetes/driver/kubernetes/overlays/stable/node-server-images.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ spec:
1010
imagePullPolicy: Always
1111
image: registry.k8s.io/cloud-provider-ibm/ibm-vpc-block-csi-driver:v0.0.0
1212
- name: csi-driver-registrar
13-
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.11.1
13+
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.13.0
1414
- name: liveness-probe
15-
image: registry.k8s.io/sig-storage/csi-attacher:v2.13.1
15+
image: registry.k8s.io/sig-storage/livenessprobe:v2.15.0

0 commit comments

Comments
 (0)