Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
unit-test:
strategy:
matrix:
go-version: [1.22.x]
go-version: [1.24.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -24,7 +24,7 @@ jobs:
build-test:
strategy:
matrix:
go-version: [1.22.x]
go-version: [1.24.x]
platform: [ubuntu-latest]
arch: [386, amd64, arm, arm64]
runs-on: ${{ matrix.platform }}
Expand Down
29 changes: 23 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
version: "2"
linters:
enable:
- dupl
- errname
- ginkgolinter
- goconst
- godox
- gosec
- nilerr
- prealloc
- reassign
- tparallel
- wrapcheck

linters-settings:
wrapcheck:
ignorePackageGlobs:
- google.golang.org/grpc/status
settings:
wrapcheck:
ignore-package-globs:
- google.golang.org/grpc/status
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine AS builder
FROM golang:1.24-alpine AS builder

RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates

Expand All @@ -14,9 +14,9 @@ COPY pkg/ pkg/
ARG TAG
ARG COMMIT_SHA
ARG BUILD_DATE
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -ldflags "-w -s -X github.com/scaleway/scaleway-csi/driver.driverVersion=${TAG} -X github.com/scaleway/scaleway-csi/driver.buildDate=${BUILD_DATE} -X github.com/scaleway/scaleway-csi/driver.gitCommit=${COMMIT_SHA} " -o scaleway-csi ./cmd/scaleway-csi
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -ldflags "-w -s -X github.com/scaleway/scaleway-csi/pkg/driver.driverVersion=${TAG} -X github.com/scaleway/scaleway-csi/pkg/driver.buildDate=${BUILD_DATE} -X github.com/scaleway/scaleway-csi/pkg/driver.gitCommit=${COMMIT_SHA} " -o scaleway-csi ./cmd/scaleway-csi

FROM alpine:3.15
FROM alpine:3.19
RUN apk update && apk add --no-cache e2fsprogs e2fsprogs-extra xfsprogs xfsprogs-extra cryptsetup ca-certificates blkid && update-ca-certificates
WORKDIR /
COPY --from=builder /go/src/github.com/scaleway/scaleway-csi/scaleway-csi .
Expand Down
52 changes: 26 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
module github.com/scaleway/scaleway-csi

go 1.22.2
go 1.24.5

require (
github.com/container-storage-interface/spec v1.9.0
github.com/container-storage-interface/spec v1.11.0
github.com/golang/protobuf v1.5.4
github.com/google/uuid v1.6.0
github.com/kubernetes-csi/csi-test/v5 v5.2.0
github.com/onsi/ginkgo/v2 v2.17.1
github.com/onsi/gomega v1.32.0
github.com/pkg/sftp v1.13.6
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.26
golang.org/x/crypto v0.22.0
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f
golang.org/x/sys v0.19.0
google.golang.org/grpc v1.63.2
google.golang.org/protobuf v1.33.0
k8s.io/klog/v2 v2.120.1
k8s.io/mount-utils v0.30.0
k8s.io/utils v0.0.0-20240310230437-4693a0247e57
github.com/kubernetes-csi/csi-test/v5 v5.3.1
github.com/onsi/ginkgo/v2 v2.23.4
github.com/onsi/gomega v1.37.0
github.com/pkg/sftp v1.13.9
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250722094606-7aefa3e74bff
golang.org/x/crypto v0.40.0
golang.org/x/exp v0.0.0-20250718183923-645b1fa84792
golang.org/x/sys v0.34.0
google.golang.org/grpc v1.73.0
google.golang.org/protobuf v1.36.6
k8s.io/klog/v2 v2.130.1
k8s.io/mount-utils v0.33.3
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397
oya.to/namedlocker v1.0.0
)

require (
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
github.com/kr/fs v0.1.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/moby/sys/mountinfo v0.6.2 // indirect
github.com/stretchr/testify v1.9.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.20.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
github.com/moby/sys/mountinfo v0.7.2 // indirect
go.uber.org/automaxprocs v1.6.0 // indirect
golang.org/x/net v0.42.0 // indirect
golang.org/x/text v0.27.0 // indirect
golang.org/x/tools v0.35.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading