Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkLeftoverEndpoints (0.28 sec)

  1. pkg/controller/endpoint/endpoints_controller.go

    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, e.worker, e.workerLoopPeriod)
    	}
    
    	go func() {
    		defer utilruntime.HandleCrash()
    		e.checkLeftoverEndpoints()
    	}()
    
    	<-ctx.Done()
    }
    
    // When a pod is added, figure out what services it will be a member of and
    // enqueue them. obj must have *v1.Pod type.
    func (e *Controller) addPod(obj interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. pkg/controller/endpoint/endpoints_controller_test.go

    		},
    		Subsets: []v1.EndpointSubset{{
    			Addresses: []v1.EndpointAddress{{IP: "6.7.8.9", NodeName: &emptyNodeName}},
    			Ports:     []v1.EndpointPort{{Port: 1000}},
    		}},
    	})
    	endpoints.checkLeftoverEndpoints()
    	if e, a := 1, endpoints.queue.Len(); e != a {
    		t.Fatalf("Expected %v, got %v", e, a)
    	}
    	got, _ := endpoints.queue.Get()
    	if e, a := ns+"/foo", got; e != a {
    		t.Errorf("Expected %v, got %v", e, a)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
Back to top