mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
error strings should not be capitalized
resolve warnings from go-staticcheck
This commit is contained in:
parent
863880cd03
commit
30ec771cf6
@ -238,7 +238,7 @@ func (t *volumeLimitsTestSuite) DefineTests(driver storageframework.TestDriver,
|
||||
}
|
||||
}
|
||||
if pod.Status.Phase != v1.PodPending {
|
||||
return true, fmt.Errorf("Expected pod to be in phase Pending, but got phase: %v", pod.Status.Phase)
|
||||
return true, fmt.Errorf("expected pod to be in phase Pending, but got phase: %v", pod.Status.Phase)
|
||||
}
|
||||
return false, nil
|
||||
})
|
||||
@ -380,12 +380,12 @@ func getInTreeNodeLimits(ctx context.Context, cs clientset.Interface, nodeName,
|
||||
case migrationplugins.AzureDiskInTreePluginName:
|
||||
allocatableKey = volumeutil.AzureVolumeLimitKey
|
||||
default:
|
||||
return 0, fmt.Errorf("Unknown in-tree volume plugin name: %s", driverName)
|
||||
return 0, fmt.Errorf("unknown in-tree volume plugin name: %s", driverName)
|
||||
}
|
||||
|
||||
limit, ok := node.Status.Allocatable[v1.ResourceName(allocatableKey)]
|
||||
if !ok {
|
||||
return 0, fmt.Errorf("Node %s does not contain status.allocatable[%s] for volume plugin %s", nodeName, allocatableKey, driverName)
|
||||
return 0, fmt.Errorf("node %s does not contain status.allocatable[%s] for volume plugin %s", nodeName, allocatableKey, driverName)
|
||||
}
|
||||
return int(limit.Value()), nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user