Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getLocalReadyEndpointIPs (0.22 sec)

  1. pkg/proxy/endpointschangetracker.go

    		delete(em, svcPortName)
    	}
    }
    
    // getLocalEndpointIPs returns endpoints IPs if given endpoint is local - local means the endpoint is running in same host as kube-proxy.
    func (em EndpointsMap) getLocalReadyEndpointIPs() map[types.NamespacedName]sets.Set[string] {
    	localIPs := make(map[types.NamespacedName]sets.Set[string])
    	for svcPortName, epList := range em {
    		for _, ep := range epList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  2. pkg/proxy/endpointschangetracker_test.go

    			{Namespace: "ns2", Name: "ep2"}: sets.New[string]("2.2.2.2", "2.2.2.22"),
    			{Namespace: "ns4", Name: "ep4"}: sets.New[string]("4.4.4.4", "4.4.4.6"),
    		},
    	}, {
    		// Case[6]: all endpoints are terminating,, so getLocalReadyEndpointIPs should return 0 ready endpoints
    		endpointsMap: EndpointsMap{
    			makeServicePortName("ns1", "ep1", "p11", v1.ProtocolTCP): []Endpoint{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 79.9K bytes
    - Viewed (0)
Back to top