report UnschedulableAndUnresolvable status instead of an error when PVCs can't find bound

persistent volumes

This is an user error. We should't report an error.
This commit is contained in:
Yecheng Fu
2020-10-14 10:47:11 +08:00
committed by Yecheng Fu
parent e54448a307
commit 0961891a7a
3 changed files with 34 additions and 8 deletions

View File

@@ -880,7 +880,8 @@ func TestFindPodVolumesWithoutProvisioning(t *testing.T) {
},
"bound-pvc,pv-not-exists": {
podPVCs: []*v1.PersistentVolumeClaim{boundPVC},
shouldFail: true,
shouldFail: false,
reasons: ConflictReasons{ErrReasonPVNotExist},
},
"prebound-pvc": {
podPVCs: []*v1.PersistentVolumeClaim{preboundPVC},