mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-26 03:30:39 -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
|
||
|---|---|---|
| .. | ||
| attachdetach | ||
| persistentvolume | ||
| OWNERS | ||