Skip to content

Commit e0b5c96

Browse files
authored
Merge pull request #2825 from Nordix/lentzi90/golangci-lint
🌱 Bump golangci-lint to v2.6.1
2 parents 919440d + 830f6ef commit e0b5c96

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)