Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shouldPodBeInEndpoints (0.27 sec)

  1. pilot/pkg/serviceregistry/kube/controller/pod.go

    	}
    
    	return out
    }
    
    // Copied from kubernetes/kubernetes/pkg/controller/util/endpoint/controller_utils.go
    //
    // shouldPodBeInEndpoints returns true if a specified pod should be in an
    // Endpoints or EndpointSlice resource. Terminating pods are not included.
    func shouldPodBeInEndpoints(pod *v1.Pod) bool {
    	// "Terminal" describes when a Pod is complete (in a succeeded or failed phase).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. pkg/controller/endpoint/endpoints_controller.go

    		ComputeEndpointLastChangeTriggerTime(namespace, service, pods)
    
    	subsets := []v1.EndpointSubset{}
    	var totalReadyEps int
    	var totalNotReadyEps int
    
    	for _, pod := range pods {
    		if !endpointsliceutil.ShouldPodBeInEndpoints(pod, service.Spec.PublishNotReadyAddresses) {
    			logger.V(5).Info("Pod is not included on endpoints for Service", "pod", klog.KObj(pod), "service", klog.KObj(service))
    			continue
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top