Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for servicePortMap (0.24 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)
  5. pkg/proxy/servicechangetracker_test.go

    	endpointsChanges *EndpointsChangeTracker
    	serviceChanges   *ServiceChangeTracker
    	svcPortMap       ServicePortMap
    	endpointsMap     EndpointsMap
    	hostname         string
    }
    
    func newFakeProxier(ipFamily v1.IPFamily, t time.Time) *FakeProxier {
    	return &FakeProxier{
    		svcPortMap:     make(ServicePortMap),
    		serviceChanges: NewServiceChangeTracker(nil, ipFamily, nil, nil),
    		endpointsMap:   make(EndpointsMap),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  6. pkg/proxy/winkernel/proxier.go

    				epInfo, ok := ep.(*endpointInfo)
    
    				if ok {
    					epInfo.Cleanup()
    				}
    
    			}
    		}
    	}
    }
    
    func (proxier *Proxier) serviceMapChange(previous, current proxy.ServicePortMap) {
    	for svcPortName := range current {
    		proxier.onServiceMapChange(&svcPortName)
    	}
    
    	for svcPortName := range previous {
    		if _, ok := current[svcPortName]; ok {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  7. pkg/proxy/nftables/proxier.go

    	endpointsChanges *proxy.EndpointsChangeTracker
    	serviceChanges   *proxy.ServiceChangeTracker
    
    	mu           sync.Mutex // protects the following fields
    	svcPortMap   proxy.ServicePortMap
    	endpointsMap proxy.EndpointsMap
    	nodeLabels   map[string]string
    	// endpointSlicesSynced, and servicesSynced are set to true
    	// when corresponding objects are synced after startup. This is used to avoid
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  8. pkg/proxy/winkernel/proxier_test.go

    		networkType:   networkType,
    		remoteSubnets: remoteSubnets,
    	}
    	hnsNetwork := newHnsNetwork(hnsNetworkInfo)
    	hcnMock := fakehcn.NewHcnMock(hnsNetwork)
    	proxier := &Proxier{
    		svcPortMap:          make(proxy.ServicePortMap),
    		endpointsMap:        make(proxy.EndpointsMap),
    		hostname:            testHostName,
    		nodeIP:              nodeIP,
    		serviceHealthServer: healthcheck.NewFakeServiceHealthServer(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 28 14:30:51 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  9. pkg/proxy/iptables/proxier.go

    	endpointsChanges *proxy.EndpointsChangeTracker
    	serviceChanges   *proxy.ServiceChangeTracker
    
    	mu           sync.Mutex // protects the following fields
    	svcPortMap   proxy.ServicePortMap
    	endpointsMap proxy.EndpointsMap
    	nodeLabels   map[string]string
    	// endpointSlicesSynced, and servicesSynced are set to true
    	// when corresponding objects are synced after startup. This is used to avoid
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  10. pkg/proxy/ipvs/proxier.go

    	endpointsChanges *proxy.EndpointsChangeTracker
    	serviceChanges   *proxy.ServiceChangeTracker
    
    	mu           sync.Mutex // protects the following fields
    	svcPortMap   proxy.ServicePortMap
    	endpointsMap proxy.EndpointsMap
    	nodeLabels   map[string]string
    	// initialSync is a bool indicating if the proxier is syncing for the first time.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
Back to top