Merge pull request #107771 from sanposhiho/fix-tiny

make scheduler_perf stable
This commit is contained in:
Kubernetes Prow Robot
2022-03-04 17:22:52 -08:00
committed by GitHub
8 changed files with 123 additions and 40 deletions

View File

@@ -120,6 +120,7 @@ func StartFakePVController(clientSet clientset.Interface) ShutdownFunc {
pvInformer := informerFactory.Core().V1().PersistentVolumes()
syncPV := func(obj *v1.PersistentVolume) {
ctx := context.Background()
if obj.Spec.ClaimRef != nil {
claimRef := obj.Spec.ClaimRef
pvc, err := clientSet.CoreV1().PersistentVolumeClaims(claimRef.Namespace).Get(ctx, claimRef.Name, metav1.GetOptions{})