Skip to content

Commit 7746003

Browse files
committed
Run hack/update-gofm with go1.19rc2
Signed-off-by: Eddie Torres <[email protected]>
1 parent f6c2b16 commit 7746003

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

pkg/cloud/cloud.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ const (
9494

9595
// AWS provisioning limits.
9696
// Source:
97-
// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-restrictions
97+
//
98+
// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-restrictions
9899
const (
99100
// MaxNumTagsPerResource represents the maximum number of tags per AWS resource.
100101
MaxNumTagsPerResource = 50

pkg/cloud/devicemanager/allocator.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ var _ NameAllocator = &nameAllocator{}
4747

4848
// GetNext gets next available device given existing names that are being used
4949
// This function iterate through the device names in deterministic order of:
50-
// ba, ... ,bz, ca, ... , cz
50+
//
51+
// ba, ... ,bz, ca, ... , cz
52+
//
5153
// and return the first one that is not used yet.
5254
func (d *nameAllocator) GetNext(existingNames ExistingNames) (string, error) {
5355
for _, c1 := range []string{"b", "c"} {

pkg/cloud/volume_limits.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
)
77

8-
/// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
8+
// / https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
99
const (
1010
highMemoryMetalInstancesMaxVolumes = 19
1111
highMemoryVirtualInstancesMaxVolumes = 27
@@ -14,14 +14,14 @@ const (
1414
nitroMaxAttachments = 28
1515
)
1616

17-
/// It is possible to have an instance family where the virtualized instances are Nitro
18-
/// and metal instances are not
17+
// / It is possible to have an instance family where the virtualized instances are Nitro
18+
// / and metal instances are not
1919
var nonNitroInstances = map[string]struct{}{
2020
"c6i.metal": {},
2121
"g5g.metal": {},
2222
}
2323

24-
/// List of nitro instance types can be found here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
24+
// / List of nitro instance types can be found here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
2525
var nonNitroInstanceFamilies = map[string]struct{}{
2626
"t2": {},
2727
"c7g": {},
@@ -63,8 +63,8 @@ func GetMaxAttachments(nitro bool) int {
6363
return nonNitroMaxAttachments
6464
}
6565

66-
/// Some instance types have a maximum limit of EBS volumes
67-
/// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
66+
// / Some instance types have a maximum limit of EBS volumes
67+
// / https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
6868
var maxVolumeLimits = map[string]int{
6969
"d3.8xlarge": 3,
7070
"d3.12xlarge": 3,
@@ -111,9 +111,9 @@ func GetNVMeInstanceStoreVolumesForInstanceType(it string) int {
111111
return 0
112112
}
113113

114-
/// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes
115-
/// IMDS does not provide NVMe instance store data; we'll just list all instances here
116-
/// TODO: See if we can get these values from DescribeInstanceTypes API
114+
// / https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes
115+
// / IMDS does not provide NVMe instance store data; we'll just list all instances here
116+
// / TODO: See if we can get these values from DescribeInstanceTypes API
117117
var nvmeInstanceStoreVolumes = map[string]int{
118118
"c5ad.large": 1,
119119
"c5ad.xlarge": 1,

pkg/mounter/safe_mounter_windows.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ func (mounter *CSIProxyMounter) IsMountPointMatch(mp mount.MountPoint, dir strin
165165
}
166166

167167
// IsLikelyMountPoint - If the directory does not exists, the function will return os.ErrNotExist error.
168-
// If the path exists, call to CSI proxy will check if its a link, if its a link then existence of target
169-
// path is checked.
168+
//
169+
// If the path exists, call to CSI proxy will check if its a link, if its a link then existence of target
170+
// path is checked.
170171
func (mounter *CSIProxyMounter) IsLikelyNotMountPoint(path string) (bool, error) {
171172
isExists, err := mounter.ExistsPath(path)
172173
if err != nil {

0 commit comments

Comments
 (0)