mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-26 11:40:44 -05:00
Automatic merge from submit-queue
fix createProvisionedPV result err judgenment bug
When ctrl.kubeClient.Core().PersistentVolumes().Create(volume) returns no err, and storeVolumeUpdate() fails, we save PV sucessfully ,but here err is not nil,we should not run the codes next in block if err != nil {} to delete the storage asset.
same in the deletion retries below
change the err names to make it clear
**Release note**:
```release-note
NONE
```
@jsafrane @saad-ali PTAL. Thanks
|
||
|---|---|---|
| .. | ||
| options | ||
| binder_test.go | ||
| BUILD | ||
| delete_test.go | ||
| framework_test.go | ||
| index.go | ||
| index_test.go | ||
| OWNERS | ||
| provision_test.go | ||
| pv_controller.go | ||
| pv_controller_base.go | ||
| pv_controller_test.go | ||
| recycle_test.go | ||
| volume_host.go | ||