Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for servicePortMap (0.17 sec)

  1. pkg/proxy/servicechangetracker.go

    // filter filters out elements from ServicePortMap base on given ports string sets.
    func (sm *ServicePortMap) filter(other ServicePortMap) {
    	for svcPortName := range *sm {
    		// skip the delete for Update event.
    		if _, ok := other[svcPortName]; ok {
    			delete(*sm, svcPortName)
    		}
    	}
    }
    
    // unmerge deletes all other ServicePortMap's elements from current ServicePortMap and
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. pkg/proxy/conntrack/cleanup.go

    	netutils "k8s.io/utils/net"
    )
    
    // CleanStaleEntries takes care of flushing stale conntrack entries for services and endpoints.
    func CleanStaleEntries(ct Interface, svcPortMap proxy.ServicePortMap,
    	serviceUpdateResult proxy.UpdateServiceMapResult, endpointsUpdateResult proxy.UpdateEndpointsMapResult) {
    	deleteStaleServiceConntrackEntries(ct, svcPortMap, serviceUpdateResult, endpointsUpdateResult)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 18:09:05 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/deployment/services.go

    		}
    
    		return true
    	})
    
    	return matchingSvcs
    }
    
    // servicePortMap build a map of ports and protocols for each Service. e.g. m[80]["TCP"] -> svcA, svcB, svcC
    func servicePortMap(svcs []ServiceSpecWithName) PortMap {
    	portMap := PortMap{}
    
    	for _, swn := range svcs {
    		svc := swn.Spec
    		for _, sPort := range svc.Ports {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. pkg/proxy/conntrack/cleanup_test.go

    	testPort         = 53
    	testNodePort     = 5353
    	testEndpointPort = "5300"
    )
    
    func TestCleanStaleEntries(t *testing.T) {
    	// We need to construct a proxy.ServicePortMap to pass to CleanStaleEntries.
    	// ServicePortMap is just map[string]proxy.ServicePort, but there are no public
    	// constructors for any implementation of proxy.ServicePort, so we have to either
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 18:09:05 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top