Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RunAndWait (0.21 sec)

  1. cni/pkg/nodeagent/informers_test.go

    		util.GetPodIPsIfPresent(pod),
    		"",
    	).Return(nil)
    
    	server := &meshDataplane{
    		kubeClient: client.Kube(),
    		netServer:  fs,
    	}
    
    	handlers := setupHandlers(ctx, client, server, "istio-system")
    	client.RunAndWait(ctx.Done())
    	go handlers.Start()
    
    	// label the namespace
    	labelsPatch := []byte(fmt.Sprintf(`{"metadata":{"labels":{"%s":"%s"}}}`,
    		constants.DataplaneMode, constants.DataplaneModeAmbient))
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/cni-watcher_test.go

    		constants.DataplaneMode, constants.DataplaneModeAmbient))
    	_, err := client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	client.RunAndWait(ctx.Done())
    
    	payload, _ := json.Marshal(valid)
    
    	// serialize our fake plugin event
    	addEvent, err := processAddEvent(payload)
    	assert.Equal(t, err, nil)
    
    	// Push it thru the handler
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Feb 02 08:18:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. cni/pkg/repair/repair.go

    	}
    
    	rc, err := NewRepairController(client, cfg)
    	if err != nil {
    		repairLog.Fatalf("Fatal error constructing repair controller: %+v", err)
    	}
    	go rc.Run(ctx.Done())
    	client.RunAndWait(ctx.Done())
    }
    
    // Set up Kubernetes client using kubeconfig (or in-cluster config if no file provided)
    func clientSetup() (kube.Client, error) {
    	config, err := kube.DefaultRestConfig("", "")
    	if err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue May 23 17:08:31 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  4. cni/pkg/repair/repair_test.go

    			c, err := NewRepairController(tt.client, tt.config)
    			assert.NoError(t, err)
    			t.Cleanup(func() {
    				assert.NoError(t, c.queue.WaitForClose(time.Second))
    			})
    			stop := test.NewStop(t)
    			tt.client.RunAndWait(stop)
    			go c.Run(stop)
    			kube.WaitForCacheSync("test", stop, c.queue.HasSynced)
    
    			assert.EventuallyEqual(t, func() map[string]string {
    				havePods := c.pods.List(metav1.NamespaceAll, klabels.Everything())
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  5. architecture/networking/controllers.md

    Running the controller actually starts processing things.
    Normally, this just means running the queue.
    All informers created by `kube.Client` are kept track in the client, and started in one go with `RunAndWait` in one centralized call.
    As a result, each individual controllers should simply wait until informers have synced, then run the queue to start processing things.
    
    A queue is used to give a few properties:
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Feb 09 17:41:25 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/server.go

    	if err != nil {
    		return probeSet, err
    	}
    	probeSet.Flush()
    	return probeSet, nil
    }
    
    func (s *Server) Start() {
    	log.Info("CNI ambient server starting")
    	s.kubeClient.RunAndWait(s.ctx.Done())
    	log.Info("CNI ambient server kubeclient started")
    	pods := s.handlers.GetAmbientPods()
    	err := s.dataplane.ConstructInitialSnapshot(pods)
    	if err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 01:42:30 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. maven-core/src/test/resources/apiv4-repo/junit/junit/4.13.1/junit-4.13.1.jar

    EXCEPTION_EXIT = 2; public void TestRunner(); public void TestRunner(java.io.PrintStream); public void TestRunner(ResultPrinter); public static void run(Class); public static junit.framework.TestResult run(junit.framework.Test); public static void runAndWait(junit.framework.Test); public void testFailed(int, junit.framework.Test, Throwable); public void testStarted(String); public void testEnded(String); protected junit.framework.TestResult createTestResult(); public junit.framework.TestResult doRu...
    Archive
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 373.7K bytes
    - Viewed (0)
Back to top