mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
fix typos in this file
This commit is contained in:
parent
84eb6c8b9d
commit
fb78c39cbc
@ -44,15 +44,15 @@ var _ volume.Attacher = &cinderDiskAttacher{}
|
|||||||
var _ volume.AttachableVolumePlugin = &cinderPlugin{}
|
var _ volume.AttachableVolumePlugin = &cinderPlugin{}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
probeVolumeInitDealy = 1 * time.Second
|
probeVolumeInitDelay = 1 * time.Second
|
||||||
probeVolumeFactor = 2.0
|
probeVolumeFactor = 2.0
|
||||||
operationFinishInitDealy = 1 * time.Second
|
operationFinishInitDelay = 1 * time.Second
|
||||||
operationFinishFactor = 1.1
|
operationFinishFactor = 1.1
|
||||||
operationFinishSteps = 10
|
operationFinishSteps = 10
|
||||||
diskAttachInitDealy = 1 * time.Second
|
diskAttachInitDelay = 1 * time.Second
|
||||||
diskAttachFactor = 1.2
|
diskAttachFactor = 1.2
|
||||||
diskAttachSteps = 15
|
diskAttachSteps = 15
|
||||||
diskDetachInitDealy = 1 * time.Second
|
diskDetachInitDelay = 1 * time.Second
|
||||||
diskDetachFactor = 1.2
|
diskDetachFactor = 1.2
|
||||||
diskDetachSteps = 13
|
diskDetachSteps = 13
|
||||||
)
|
)
|
||||||
@ -75,7 +75,7 @@ func (plugin *cinderPlugin) GetDeviceMountRefs(deviceMountPath string) ([]string
|
|||||||
|
|
||||||
func (attacher *cinderDiskAttacher) waitOperationFinished(volumeID string) error {
|
func (attacher *cinderDiskAttacher) waitOperationFinished(volumeID string) error {
|
||||||
backoff := wait.Backoff{
|
backoff := wait.Backoff{
|
||||||
Duration: operationFinishInitDealy,
|
Duration: operationFinishInitDelay,
|
||||||
Factor: operationFinishFactor,
|
Factor: operationFinishFactor,
|
||||||
Steps: operationFinishSteps,
|
Steps: operationFinishSteps,
|
||||||
}
|
}
|
||||||
@ -100,7 +100,7 @@ func (attacher *cinderDiskAttacher) waitOperationFinished(volumeID string) error
|
|||||||
|
|
||||||
func (attacher *cinderDiskAttacher) waitDiskAttached(instanceID, volumeID string) error {
|
func (attacher *cinderDiskAttacher) waitDiskAttached(instanceID, volumeID string) error {
|
||||||
backoff := wait.Backoff{
|
backoff := wait.Backoff{
|
||||||
Duration: diskAttachInitDealy,
|
Duration: diskAttachInitDelay,
|
||||||
Factor: diskAttachFactor,
|
Factor: diskAttachFactor,
|
||||||
Steps: diskAttachSteps,
|
Steps: diskAttachSteps,
|
||||||
}
|
}
|
||||||
@ -235,12 +235,12 @@ func (attacher *cinderDiskAttacher) WaitForAttach(spec *volume.Spec, devicePath
|
|||||||
return "", fmt.Errorf("WaitForAttach failed for Cinder disk %q: devicePath is empty.", volumeID)
|
return "", fmt.Errorf("WaitForAttach failed for Cinder disk %q: devicePath is empty.", volumeID)
|
||||||
}
|
}
|
||||||
|
|
||||||
ticker := time.NewTicker(probeVolumeInitDealy)
|
ticker := time.NewTicker(probeVolumeInitDelay)
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
timer := time.NewTimer(timeout)
|
timer := time.NewTimer(timeout)
|
||||||
defer timer.Stop()
|
defer timer.Stop()
|
||||||
|
|
||||||
duration := probeVolumeInitDealy
|
duration := probeVolumeInitDelay
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
@ -334,7 +334,7 @@ func (plugin *cinderPlugin) NewDetacher() (volume.Detacher, error) {
|
|||||||
|
|
||||||
func (detacher *cinderDiskDetacher) waitOperationFinished(volumeID string) error {
|
func (detacher *cinderDiskDetacher) waitOperationFinished(volumeID string) error {
|
||||||
backoff := wait.Backoff{
|
backoff := wait.Backoff{
|
||||||
Duration: operationFinishInitDealy,
|
Duration: operationFinishInitDelay,
|
||||||
Factor: operationFinishFactor,
|
Factor: operationFinishFactor,
|
||||||
Steps: operationFinishSteps,
|
Steps: operationFinishSteps,
|
||||||
}
|
}
|
||||||
@ -359,7 +359,7 @@ func (detacher *cinderDiskDetacher) waitOperationFinished(volumeID string) error
|
|||||||
|
|
||||||
func (detacher *cinderDiskDetacher) waitDiskDetached(instanceID, volumeID string) error {
|
func (detacher *cinderDiskDetacher) waitDiskDetached(instanceID, volumeID string) error {
|
||||||
backoff := wait.Backoff{
|
backoff := wait.Backoff{
|
||||||
Duration: diskDetachInitDealy,
|
Duration: diskDetachInitDelay,
|
||||||
Factor: diskDetachFactor,
|
Factor: diskDetachFactor,
|
||||||
Steps: diskDetachSteps,
|
Steps: diskDetachSteps,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user