Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 57 of 57 for waitForCacheSync (0.31 sec)

  1. pkg/volume/csi/csi_plugin.go

    	}
    	return false, nil
    }
    
    func (p *csiPlugin) getCSIDriver(driver string) (*storage.CSIDriver, error) {
    	kletHost, ok := p.host.(volume.KubeletVolumeHost)
    	if ok {
    		if err := kletHost.WaitForCacheSync(); err != nil {
    			return nil, err
    		}
    	}
    
    	if p.csiDriverLister == nil {
    		return nil, errors.New("CSIDriver lister does not exist")
    	}
    	csiDriver, err := p.csiDriverLister.Get(driver)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  2. pkg/scheduler/scheduler_test.go

    					return
    				}
    				wg.Done()
    			})
    			if err != nil {
    				t.Fatal(err)
    			}
    			defer stopFn()
    
    			// Run scheduler.
    			informerFactory.Start(ctx.Done())
    			informerFactory.WaitForCacheSync(ctx.Done())
    			go scheduler.Run(ctx)
    
    			// Send pods to be scheduled.
    			for _, p := range tc.waitSchedulingPods {
    				_, err = fakeClient.CoreV1().Pods("").Create(ctx, p, metav1.CreateOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 42K bytes
    - Viewed (0)
  3. pkg/controller/resourcequota/resource_quota_controller_test.go

    	//       cache.WaitForNamedCacheSync() loops with `syncedPollPeriod` (hardcoded to 100ms), until either its stop channel is closed after `period`, or all caches synced.
    	//
    	// Setting the period to 200ms allows the WaitForCacheSync() to check
    	// for cache sync ~2 times in every wait.Until() loop.
    	//
    	// The 1s sleep in the test allows GetQuotableResources and
    	// resyncMonitors to run ~5 times to ensure the changes to the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  4. pkg/controller/volume/persistentvolume/pv_controller_test.go

    				fakeVolumeWatch.Add(volume)
    			}(volume)
    		}
    
    		// Start the controller
    		ctx, cancel := context.WithCancel(context.TODO())
    		informers.Start(ctx.Done())
    		informers.WaitForCacheSync(ctx.Done())
    		go ctrl.Run(ctx)
    
    		// Wait for the controller to pass initial sync and fill its caches.
    		err = wait.Poll(10*time.Millisecond, wait.ForeverTestTimeout, func() (bool, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_plugin_test.go

    	volumeAttachmentInformer := factory.Storage().V1().VolumeAttachments()
    	volumeAttachmentLister := volumeAttachmentInformer.Lister()
    
    	factory.Start(wait.NeverStop)
    	syncedTypes := factory.WaitForCacheSync(wait.NeverStop)
    	if len(syncedTypes) != 2 {
    		t.Fatalf("informers are not synced")
    	}
    	for ty, ok := range syncedTypes {
    		if !ok {
    			t.Fatalf("failed to sync: %#v", ty)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/controller.go

    				c.initialSyncTimedout.Store(true)
    			}
    		})
    	}
    	st := time.Now()
    
    	go c.imports.Run(stop)
    	go c.exports.Run(stop)
    	kubelib.WaitForCacheSync("kube controller", stop, c.informersSynced)
    	log.Infof("kube controller for %s synced after %v", c.opts.ClusterID, time.Since(st))
    	// after the in-order sync we can start processing the queue
    	c.queue.Run(stop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go

    	defer utilruntime.HandleCrash()
    
    	// Let the config worker stop when we are done
    	defer cfgCtlr.configQueue.ShutDown()
    
    	klog.Info("Starting API Priority and Fairness config controller")
    	if ok := cache.WaitForCacheSync(stopCh, cfgCtlr.plInformerSynced, cfgCtlr.fsInformerSynced); !ok {
    		return fmt.Errorf("Never achieved initial sync")
    	}
    
    	klog.Info("Running API Priority and Fairness config worker")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 48.8K bytes
    - Viewed (0)
Back to top