mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-28 12:23:55 +00:00
Fix a bug where the target pod doesn't become schedulable within 5 minutes when a deleted pod uses the same PVC with the ReadWriteOncePod access mode. (#126263)
Co-authored-by: Kensei Nakada <handbomusic@gmail.com>
This commit is contained in:
@@ -640,6 +640,22 @@ func Test_isSchedulableAfterPodDeleted(t *testing.T) {
|
||||
expectedHint: framework.QueueSkip,
|
||||
expectedErr: false,
|
||||
},
|
||||
"queue-has-same-claim": {
|
||||
pod: st.MakePod().Name("pod1").PVC("claim-rwop").Obj(),
|
||||
oldObj: st.MakePod().Name("pod2").PVC("claim-rwop").Obj(),
|
||||
existingPods: []*v1.Pod{},
|
||||
existingPVC: &v1.PersistentVolumeClaim{},
|
||||
expectedHint: framework.Queue,
|
||||
expectedErr: false,
|
||||
},
|
||||
"skip-no-same-claim": {
|
||||
pod: st.MakePod().Name("pod1").PVC("claim-1-rwop").Obj(),
|
||||
oldObj: st.MakePod().Name("pod2").PVC("claim-2-rwop").Obj(),
|
||||
existingPods: []*v1.Pod{},
|
||||
existingPVC: &v1.PersistentVolumeClaim{},
|
||||
expectedHint: framework.QueueSkip,
|
||||
expectedErr: false,
|
||||
},
|
||||
}
|
||||
|
||||
for name, tc := range testcases {
|
||||
|
||||
Reference in New Issue
Block a user