Skip to content

Commit 830f6ef

Browse files
committed
Bump golangci-lint to v2.6.1
Signed-off-by: Lennart Jern <[email protected]>
1 parent 33d80a2 commit 830f6ef

20 files changed

+5
-24
lines changed

hack/tools/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
ROOT_DIR_RELATIVE := ../..
1616
include $(ROOT_DIR_RELATIVE)/common.mk
1717

18-
GOLANGCI_LINT_VERSION ?= v2.5.0
18+
GOLANGCI_LINT_VERSION ?= v2.6.1
1919

2020
# GOTESTSUM version without the leading 'v'
2121
GOTESTSUM_VERSION ?= 1.12.0

pkg/cloud/services/compute/instance.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ func (s *Service) createInstanceImpl(eventObject runtime.Object, instanceSpec *I
6565
})
6666
}
6767

68-
instanceCreateTimeout := getTimeout("CLUSTER_API_OPENSTACK_INSTANCE_CREATE_TIMEOUT", timeoutInstanceCreate)
69-
instanceCreateTimeout *= time.Minute
68+
instanceCreateTimeout := getTimeout("CLUSTER_API_OPENSTACK_INSTANCE_CREATE_TIMEOUT", timeoutInstanceCreate, time.Minute)
7069

7170
// Don't set ImageRef on the server if we're booting from volume
7271
var serverImageRef string
@@ -606,14 +605,14 @@ func (s *Service) GetInstanceStatusByName(eventObject runtime.Object, name strin
606605
return nil, nil
607606
}
608607

609-
func getTimeout(name string, timeout int) time.Duration {
608+
func getTimeout(name string, timeout int, unit time.Duration) time.Duration {
610609
if v := os.Getenv(name); v != "" {
611610
timeout, err := strconv.Atoi(v)
612611
if err == nil {
613-
return time.Duration(timeout)
612+
return time.Duration(timeout) * unit
614613
}
615614
}
616-
return time.Duration(timeout)
615+
return time.Duration(timeout) * unit
617616
}
618617

619618
// requiresTagging checks if the instanceSpec requires tagging,

test/e2e/shared/cluster.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build e2e
2-
// +build e2e
32

43
/*
54
Copyright 2021 The Kubernetes Authors.

test/e2e/shared/common.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build e2e
2-
// +build e2e
32

43
/*
54
Copyright 2021 The Kubernetes Authors.

test/e2e/shared/context.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build e2e
2-
// +build e2e
32

43
/*
54
Copyright 2021 The Kubernetes Authors.

test/e2e/shared/defaults.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build e2e
2-
// +build e2e
32

43
/*
54
Copyright 2021 The Kubernetes Authors.

test/e2e/shared/exec.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build e2e
2-
// +build e2e
32

43
/*
54
Copyright 2021 The Kubernetes Authors.

test/e2e/shared/exec_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build e2e
2-
// +build e2e
32

43
/*
54
Copyright 2021 The Kubernetes Authors.

test/e2e/shared/images.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build e2e
2-
// +build e2e
32

43
/*
54
Copyright 2024 The Kubernetes Authors.

test/e2e/shared/openstack.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build e2e
2-
// +build e2e
32

43
/*
54
Copyright 2021 The Kubernetes Authors.

0 commit comments

Comments
 (0)