mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #81444 from AllenZMC/patch-3
fix some typos in testing.go and recycle_test.go
This commit is contained in:
commit
22dc60e1a7
@ -149,7 +149,7 @@ func TestRecycleSync(t *testing.T) {
|
||||
noevents, noerrors,
|
||||
wrapTestWithInjectedOperation(wrapTestWithReclaimCalls(operationRecycle, []error{}, testSyncVolume), func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor) {
|
||||
// Mark the volume as Available before the recycler starts
|
||||
reactor.MarkVolumeAvaiable("volume6-7")
|
||||
reactor.MarkVolumeAvailable("volume6-7")
|
||||
}),
|
||||
},
|
||||
{
|
||||
@ -165,7 +165,7 @@ func TestRecycleSync(t *testing.T) {
|
||||
noevents, noerrors,
|
||||
wrapTestWithInjectedOperation(wrapTestWithReclaimCalls(operationRecycle, []error{}, testSyncVolume), func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor) {
|
||||
// Mark the volume as Available before the recycler starts
|
||||
reactor.MarkVolumeAvaiable("volume6-8")
|
||||
reactor.MarkVolumeAvailable("volume6-8")
|
||||
}),
|
||||
},
|
||||
{
|
||||
|
@ -557,8 +557,8 @@ func (r *VolumeReactor) AddClaimBoundToVolume(claim *v1.PersistentVolumeClaim) {
|
||||
}
|
||||
}
|
||||
|
||||
// MarkVolumeAvaiable marks a PV available by name.
|
||||
func (r *VolumeReactor) MarkVolumeAvaiable(name string) {
|
||||
// MarkVolumeAvailable marks a PV available by name.
|
||||
func (r *VolumeReactor) MarkVolumeAvailable(name string) {
|
||||
r.lock.Lock()
|
||||
defer r.lock.Unlock()
|
||||
if volume, ok := r.volumes[name]; ok {
|
||||
|
Loading…
Reference in New Issue
Block a user