• Kubernetes Submit Queue's avatar
    Merge pull request #42721 from NickrenREN/pv-provisionClaimOperation · 81d9e7f6
    Kubernetes Submit Queue authored
    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
    81d9e7f6
Name
Last commit
Last update
..
attachdetach Loading commit data...
persistentvolume Loading commit data...
OWNERS Loading commit data...