From 48766577faa6ca3e48fd48ccac1fa93fd8916593 Mon Sep 17 00:00:00 2001 From: Praveen M Date: Thu, 19 Dec 2024 14:53:38 +0530 Subject: [PATCH] ci: update golangci-lint to v1.60.3 - gomnd is replaced by mnd in v1.58.0 Signed-off-by: Praveen M --- build.env | 2 +- e2e/rbd_helper.go | 8 ++++---- internal/cephfs/mounter/volumemounter.go | 2 +- internal/rbd/nodeserver.go | 2 +- internal/rbd/rbd_util.go | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build.env b/build.env index 0f474fbe18b..e7d9aaa77dc 100644 --- a/build.env +++ b/build.env @@ -26,7 +26,7 @@ GO111MODULE=on COMMITLINT_VERSION=latest # static checks and linters -GOLANGCI_VERSION=v1.57.2 +GOLANGCI_VERSION=v1.60.3 # external snapshotter version # Refer: https://github.com/kubernetes-csi/external-snapshotter/releases diff --git a/e2e/rbd_helper.go b/e2e/rbd_helper.go index 786660722df..7a00871e896 100644 --- a/e2e/rbd_helper.go +++ b/e2e/rbd_helper.go @@ -36,7 +36,7 @@ import ( "k8s.io/kubernetes/test/e2e/framework" ) -//nolint:gomnd // numbers specify Kernel versions. +//nolint:mnd // numbers specify Kernel versions. var nbdResizeSupport = []util.KernelVersion{ { Version: 5, @@ -48,7 +48,7 @@ var nbdResizeSupport = []util.KernelVersion{ }, // standard 5.3+ versions } -//nolint:gomnd // numbers specify Kernel versions. +//nolint:mnd // numbers specify Kernel versions. var fastDiffSupport = []util.KernelVersion{ { Version: 5, @@ -60,7 +60,7 @@ var fastDiffSupport = []util.KernelVersion{ }, // standard 5.3+ versions } -//nolint:gomnd // numbers specify Kernel versions. +//nolint:mnd // numbers specify Kernel versions. var deepFlattenSupport = []util.KernelVersion{ { Version: 5, @@ -75,7 +75,7 @@ var deepFlattenSupport = []util.KernelVersion{ // To use `io-timeout=0` we need // www.mail-archive.com/linux-block@vger.kernel.org/msg38060.html // -//nolint:gomnd // numbers specify Kernel versions. +//nolint:mnd // numbers specify Kernel versions. var nbdZeroIOtimeoutSupport = []util.KernelVersion{ { Version: 5, diff --git a/internal/cephfs/mounter/volumemounter.go b/internal/cephfs/mounter/volumemounter.go index 986ac6ee6b0..edf85f5d0df 100644 --- a/internal/cephfs/mounter/volumemounter.go +++ b/internal/cephfs/mounter/volumemounter.go @@ -31,7 +31,7 @@ import ( var ( availableMounters []string - //nolint:gomnd // numbers specify Kernel versions. + //nolint:mnd // numbers specify Kernel versions. quotaSupport = []util.KernelVersion{ { Version: 4, diff --git a/internal/rbd/nodeserver.go b/internal/rbd/nodeserver.go index 905fcf8affe..5702ad050f1 100644 --- a/internal/rbd/nodeserver.go +++ b/internal/rbd/nodeserver.go @@ -76,7 +76,7 @@ var ( kernelRelease = "" // deepFlattenSupport holds the list of kernel which support mapping rbd // image with deep-flatten image feature - //nolint:gomnd // numbers specify Kernel versions. + //nolint:mnd // numbers specify Kernel versions. deepFlattenSupport = []util.KernelVersion{ { Version: 5, diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index d1fc4a32801..274981bfe86 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -1793,7 +1793,7 @@ func (ri *rbdImageMetadataStash) String() string { func stashRBDImageMetadata(volOptions *rbdVolume, metaDataPath string) error { imgMeta := rbdImageMetadataStash{ // there are no checks for this at present - Version: 3, //nolint:gomnd // number specifies version. + Version: 3, //nolint:mnd // number specifies version. Pool: volOptions.Pool, RadosNamespace: volOptions.RadosNamespace, ImageName: volOptions.RbdImageName,