Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 123 for waitForCacheSync (0.19 sec)

  1. pkg/kube/kclient/crdwatcher.go

    	c.mutex.Lock()
    	if c.stop != nil {
    		// Run already called. Because we call this from client.RunAndWait this isn't uncommon
    		c.mutex.Unlock()
    		return
    	}
    	c.stop = stop
    	c.mutex.Unlock()
    	kube.WaitForCacheSync("crd watcher", stop, c.crds.HasSynced)
    	c.queue.Run(stop)
    	c.crds.ShutdownHandlers()
    }
    
    // WaitForCRD waits until the request CRD exists, and returns true on success. A false return value
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. pilot/pkg/controllers/untaint/nodeuntainter.go

    			n.queue.AddObject(o.New)
    		}
    	})
    }
    
    func (n *NodeUntainter) HasSynced() bool {
    	return n.queue.HasSynced()
    }
    
    func (n *NodeUntainter) Run(stop <-chan struct{}) {
    	kubelib.WaitForCacheSync("node untainer", stop, n.nodesClient.HasSynced, n.podsClient.HasSynced)
    	n.queue.Run(stop)
    	n.podsClient.ShutdownHandlers()
    	n.nodesClient.ShutdownHandlers()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/apiapproval/apiapproval_controller.go

    	defer c.queue.ShutDown()
    
    	klog.Infof("Starting KubernetesAPIApprovalPolicyConformantConditionController")
    	defer klog.Infof("Shutting down KubernetesAPIApprovalPolicyConformantConditionController")
    
    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.Until(c.runWorker, time.Second, stopCh)
    	}
    
    	<-stopCh
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. pkg/kube/kclient/client_test.go

    		tracker := assert.NewTracker[string](t)
    		wasm.AddEventHandler(clienttest.TrackerHandler(tracker))
    		go constantlyAccessForRaceDetection(stop, wasm)
    		c.RunAndWait(stop)
    		kube.WaitForCacheSync("test", test.NewStop(t), wasm.HasSynced)
    
    		wt.Create(&istioclient.WasmPlugin{
    			ObjectMeta: metav1.ObjectMeta{Name: "name", Namespace: "default"},
    		})
    		assert.EventuallyEqual(t, func() int {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 15:12:54 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go

    			return nil, nil, err
    		}
    	}
    
    	res.Start = func() error {
    		fakeInformerFactory.Start(res.Done())
    		go policyInformer.Run(res.Done())
    		go bindingInformer.Run(res.Done())
    
    		if !cache.WaitForCacheSync(res.Done(), res.Source.HasSynced) {
    			return fmt.Errorf("timed out waiting for initial cache sync")
    		}
    		return nil
    	}
    	return res, testCancel, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/nonstructuralschema/nonstructuralschema_controller.go

    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.Infof("Starting NonStructuralSchemaConditionController")
    	defer klog.Infof("Shutting down NonStructuralSchemaConditionController")
    
    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.Until(c.runWorker, time.Second, stopCh)
    	}
    
    	<-stopCh
    }
    
    func (c *ConditionController) runWorker() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapiv3/controller.go

    	defer c.queue.ShutDown()
    	defer klog.Infof("Shutting down OpenAPI V3 controller")
    
    	klog.Infof("Starting OpenAPI V3 controller")
    
    	c.openAPIV3Service = openAPIV3Service
    
    	if !cache.WaitForCacheSync(stopCh, c.crdsSynced) {
    		utilruntime.HandleError(fmt.Errorf("timed out waiting for caches to sync"))
    		return
    	}
    
    	crds, err := c.crdLister.List(labels.Everything())
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go

    	informerFactory.Start(stopCh)
    
    	ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
    	defer cancel()
    	status := informerFactory.WaitForCacheSync(ctx.Done())
    	if names := unsynced(status); len(names) > 0 {
    		t.Fatalf("WaitForCacheSync did not successfully complete, resources=%#v", names)
    	}
    
    	go func() {
    		defer close(controllerCompletedCh)
    		controllerErr = controller.Run(stopCh)
    	}()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  9. pkg/webhooks/validation/controller/controller_test.go

    		WatchedNamespace: ns,
    		CABundleWatcher:  watcher,
    		Revision:         revision,
    		ServiceName:      "istiod",
    	}, c)
    	stop := test.NewStop(t)
    	c.RunAndWait(stop)
    	go control.Run(stop)
    	kube.WaitForCacheSync("test", stop, control.queue.HasSynced)
    
    	gatewayError := setupGatewayError(c)
    
    	return control, gatewayError
    }
    
    func unstartedTestController(c kube.Client) *Controller {
    	revision := "default"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 05 03:21:04 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. pkg/kube/namespace/filter.go

    			f.namespaceDeletedLocked(ns.ObjectMeta)
    		},
    	})
    	// Start namespaces and wait for it to be ready now. This is required for subsequent users, so we want to block
    	namespaces.Start(stop)
    	kube.WaitForCacheSync("discovery filter", stop, namespaces.HasSynced)
    	f.selectorsChanged(mesh.Mesh().GetDiscoverySelectors(), false)
    	return f
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 17:12:52 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top