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
2 changes: 1 addition & 1 deletion hack/tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ROOT_DIR_RELATIVE := ../..
include $(ROOT_DIR_RELATIVE)/common.mk

GOLANGCI_LINT_VERSION ?= v2.5.0
GOLANGCI_LINT_VERSION ?= v2.6.1

# GOTESTSUM version without the leading 'v'
GOTESTSUM_VERSION ?= 1.12.0
Expand Down
9 changes: 4 additions & 5 deletions pkg/cloud/services/compute/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ func (s *Service) createInstanceImpl(eventObject runtime.Object, instanceSpec *I
})
}

instanceCreateTimeout := getTimeout("CLUSTER_API_OPENSTACK_INSTANCE_CREATE_TIMEOUT", timeoutInstanceCreate)
instanceCreateTimeout *= time.Minute
instanceCreateTimeout := getTimeout("CLUSTER_API_OPENSTACK_INSTANCE_CREATE_TIMEOUT", timeoutInstanceCreate, time.Minute)

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

func getTimeout(name string, timeout int) time.Duration {
func getTimeout(name string, timeout int, unit time.Duration) time.Duration {
if v := os.Getenv(name); v != "" {
timeout, err := strconv.Atoi(v)
if err == nil {
return time.Duration(timeout)
return time.Duration(timeout) * unit
}
}
return time.Duration(timeout)
return time.Duration(timeout) * unit
}

// requiresTagging checks if the instanceSpec requires tagging,
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/cluster.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/common.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/context.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/defaults.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/exec.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/exec_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/images.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2024 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/openstack.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/openstack_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/shared/suite.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/suites/conformance/conformance_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/suites/conformance/conformance_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/suites/e2e/clusterctl_upgrade_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/suites/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/suites/e2e/e2e_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/suites/e2e/quick_start_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2024 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/suites/e2e/remediations_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2021 The Kubernetes Authors.
Expand Down
1 change: 0 additions & 1 deletion test/e2e/suites/e2e/self_hosted_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build e2e
// +build e2e

/*
Copyright 2022 The Kubernetes Authors.
Expand Down