Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for recomputeServiceForPod (0.39 sec)

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

    		}
    		if isPodUpdate {
    			// Recompute service(s) due to pod label change.
    			// If it is a new pod, no need to recompute, as it yet computed for the first time yet.
    			pc.c.recomputeServiceForPod(pod)
    		}
    	}
    }
    
    func (pc *PodCache) getPodKeys(addr string) []types.NamespacedName {
    	pc.RLock()
    	defer pc.RUnlock()
    	return pc.podsByIP[addr].UnsortedList()
    }
    
    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. pilot/pkg/serviceregistry/kube/controller/controller.go

    	c.handlers.NotifyServiceHandlers(nil, svc, event)
    }
    
    // recomputeServiceForPod is called when a pod changes and service endpoints need to be recomputed.
    // Most of Pod is immutable, so once it has been created we are ok to cache the internal representation.
    // However, a few fields (labels) are mutable. When these change, we call recomputeServiceForPod and rebuild the cache
    // for all service's the pod is a part of and push an update.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top