@@ -586,7 +586,7 @@ func TestIsSchedulableAfterPersistentVolumeClaimAdded(t *testing.T) {
586
586
expectedHint : framework .Queue ,
587
587
expectedErr : true ,
588
588
},
589
- "pvc-was-added-and -pod-was-not-bound-to-pvc" : {
589
+ "pvc-was-added-but -pod-was-not-bound-to-pvc" : {
590
590
pod : st .MakePod ().Name ("pod_1" ).Namespace ("default" ).Obj (),
591
591
newObj : & v1.PersistentVolumeClaim {
592
592
ObjectMeta : metav1.ObjectMeta {Name : "PVC_1" , Namespace : "default" },
@@ -618,22 +618,6 @@ func TestIsSchedulableAfterPersistentVolumeClaimAdded(t *testing.T) {
618
618
},
619
619
expectedHint : framework .Queue ,
620
620
},
621
- "pvc-was-added-and-pod-was-bound-to-added-pvc, pvc-bound-to-storage-class-with-not-wait-mode" : {
622
- pod : createPodWithVolume ("pod_1" , "PVC_2" ),
623
- newObj : & v1.PersistentVolumeClaim {
624
- ObjectMeta : metav1.ObjectMeta {Name : "PVC_2" , Namespace : "default" },
625
- Spec : v1.PersistentVolumeClaimSpec {StorageClassName : ptr .To ("SC_1" )},
626
- },
627
- expectedHint : framework .Queue ,
628
- },
629
- "pvc-was-added-and-pod-was-bound-to-added-pvc, pvc-bound-to-storage-class-with-wait-mode" : {
630
- pod : createPodWithVolume ("pod_1" , "PVC_3" ),
631
- newObj : & v1.PersistentVolumeClaim {
632
- ObjectMeta : metav1.ObjectMeta {Name : "PVC_3" , Namespace : "default" },
633
- Spec : v1.PersistentVolumeClaimSpec {StorageClassName : ptr .To ("SC_2" )},
634
- },
635
- expectedHint : framework .Queue ,
636
- },
637
621
"pvc-was-updated-and-pod-was-bound-to-pvc" : {
638
622
pod : createPodWithVolume ("pod_1" , "PVC_1" ),
639
623
oldObj : & v1.PersistentVolumeClaim {
@@ -646,18 +630,6 @@ func TestIsSchedulableAfterPersistentVolumeClaimAdded(t *testing.T) {
646
630
},
647
631
expectedHint : framework .Queue ,
648
632
},
649
- "pvc-was-updated-but-pv-doesn't-change" : {
650
- pod : createPodWithVolume ("pod_1" , "PVC_1" ),
651
- oldObj : & v1.PersistentVolumeClaim {
652
- ObjectMeta : metav1.ObjectMeta {Name : "PVC_1" , Namespace : "default" },
653
- Spec : v1.PersistentVolumeClaimSpec {VolumeName : "Vol_1" },
654
- },
655
- newObj : & v1.PersistentVolumeClaim {
656
- ObjectMeta : metav1.ObjectMeta {Name : "PVC_1" , Namespace : "default" },
657
- Spec : v1.PersistentVolumeClaimSpec {VolumeName : "Vol_1" },
658
- },
659
- expectedHint : framework .Queue ,
660
- },
661
633
"pvc-was-updated-but-pod-was-not-bound-to-pvc" : {
662
634
pod : createPodWithVolume ("pod_1" , "" ),
663
635
oldObj : & v1.PersistentVolumeClaim {
@@ -666,7 +638,7 @@ func TestIsSchedulableAfterPersistentVolumeClaimAdded(t *testing.T) {
666
638
},
667
639
newObj : & v1.PersistentVolumeClaim {
668
640
ObjectMeta : metav1.ObjectMeta {Name : "PVC_1" , Namespace : "default" },
669
- Spec : v1.PersistentVolumeClaimSpec {VolumeName : "" },
641
+ Spec : v1.PersistentVolumeClaimSpec {VolumeName : "Vol_1 " },
670
642
},
671
643
expectedHint : framework .QueueSkip ,
672
644
},
0 commit comments