Correct spelling mistakes

Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
This commit is contained in:
yuxiaobo
2019-11-06 11:43:20 +08:00
parent 74cbf0dc33
commit 81e9f21f83
48 changed files with 63 additions and 63 deletions

View File

@@ -219,7 +219,7 @@ func (rc *reconciler) reconcile() {
continue
}
// Trigger detach volume which requires verifing safe to detach step
// Trigger detach volume which requires verifying safe to detach step
// If timeout is true, skip verifySafeToDetach check
klog.V(5).Infof(attachedVolume.GenerateMsgDetailed("Starting attacherDetacher.DetachVolume", ""))
verifySafeToDetach := !timeout

View File

@@ -486,7 +486,7 @@ var (
// wrapTestWithPluginCalls returns a testCall that:
// - configures controller with a volume plugin that implements recycler,
// deleter and provisioner. The plugin retunrs provided errors when a volume
// deleter and provisioner. The plugin returns provided errors when a volume
// is deleted, recycled or provisioned.
// - calls given testCall
func wrapTestWithPluginCalls(expectedRecycleCalls, expectedDeleteCalls []error, expectedProvisionCalls []provisionCall, toWrap testCall) testCall {

View File

@@ -1093,7 +1093,7 @@ func TestVolumeModeCheck(t *testing.T) {
pvc: makeVolumeModePVC("8G", &filesystemMode, nil),
enableBlock: true,
},
"feature enabled - pvc nil and pv filesytem": {
"feature enabled - pvc nil and pv filesystem": {
isExpectedMismatch: false,
vol: createVolumeModeFilesystemTestVolume(),
pvc: makeVolumeModePVC("8G", nil, nil),

View File

@@ -98,7 +98,7 @@ var (
volumeOperationErrorsMetric = metrics.NewCounterVec(
&metrics.CounterOpts{
Name: "volume_operation_total_errors",
Help: "Total volume operation erros",
Help: "Total volume operation errors",
StabilityLevel: metrics.ALPHA,
},
[]string{"plugin_name", "operation_name"})

View File

@@ -206,7 +206,7 @@ type PersistentVolumeController struct {
// operationTimestamps caches start timestamp of operations
// (currently provision + binding/deletion) for metric recording.
// Detailed lifecyle/key for each operation
// Detailed lifecycle/key for each operation
// 1. provision + binding
// key: claimKey
// start time: user has NOT provide any volume ref in the claim AND
@@ -1071,7 +1071,7 @@ func (ctrl *PersistentVolumeController) recycleVolumeOperation(volume *v1.Persis
}
// Verify the claim is in cache: if so, then it is a different PVC with the same name
// since the volume is known to be released at this moment. Ths new (cached) PVC must use
// since the volume is known to be released at this moment. The new (cached) PVC must use
// a different PV -- we checked that the PV is unused in isVolumeReleased.
// So the old PV is safe to be recycled.
claimName := claimrefToClaimKey(volume.Spec.ClaimRef)