mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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"})
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user