Merge pull request #113794 from littlejiancc/feature_stateful_cleanup

Simplify case conditions
This commit is contained in:
Kubernetes Prow Robot 2023-02-09 20:37:39 -08:00 committed by GitHub
commit 2c37b470b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -335,7 +335,7 @@ func (spc *StatefulPodControl) createPersistentVolumeClaims(set *apps.StatefulSe
case err != nil:
errs = append(errs, fmt.Errorf("failed to retrieve PVC %s: %s", claim.Name, err))
spc.recordClaimEvent("create", set, pod, &claim, err)
case err == nil:
default:
if pvc.DeletionTimestamp != nil {
errs = append(errs, fmt.Errorf("pvc %s is being deleted", claim.Name))
}