Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for endpointMap (0.22 sec)

  1. pkg/proxy/winkernel/testing/hcnutils_mock.go

    		return nil, err
    	}
    	if _, ok := endpointMap[endpoint.Id]; ok {
    		return nil, fmt.Errorf("endpoint id %s already present", endpoint.Id)
    	}
    	if _, ok := endpointMap[endpoint.Name]; ok {
    		return nil, fmt.Errorf("endpoint Name %s already present", endpoint.Name)
    	}
    	endpoint.Id, endpoint.Name = hcnObj.generateEndpointGuid()
    	endpoint.HostComputeNetwork = network.Id
    	endpointMap[endpoint.Id] = endpoint
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 06:29:01 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. pkg/proxy/winkernel/proxier.go

    		svcInfo.cleanupAllPolicies(proxier.endpointsMap[*svcPortName], proxier.mapStaleLoadbalancers, true)
    	} else {
    		// If no service exists, just cleanup the remote endpoints
    		klog.V(3).InfoS("Endpoints are orphaned, cleaning up")
    		// Cleanup Endpoints references
    		epInfos, exists := proxier.endpointsMap[*svcPortName]
    
    		if exists {
    			// Cleanup Endpoints references
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  3. pkg/proxy/nftables/proxier.go

    		endpointIP = strings.ReplaceAll(endpointIP, ":", ".")
    	}
    
    	// As above, we use "/" to separate parts of the name, and "__" to separate the
    	// "service" part from the "endpoint" part.
    	name := fmt.Sprintf("%s/%s/%s/%s__%s/%s",
    		servicePortName.NamespacedName.Namespace,
    		servicePortName.NamespacedName.Name,
    		protocol,
    		servicePortName.Port,
    		endpointIP,
    		endpointPort,
    	)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  4. pkg/proxy/endpointschangetracker.go

    }
    
    // Merge ensures that the current EndpointsMap contains all <service, endpoints> pairs from the EndpointsMap passed in.
    func (em EndpointsMap) merge(other EndpointsMap) {
    	for svcPortName := range other {
    		em[svcPortName] = other[svcPortName]
    	}
    }
    
    // Unmerge removes the <service, endpoints> pairs from the current EndpointsMap which are contained in the EndpointsMap passed in.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  5. pkg/proxy/conntrack/cleanup.go

    	for _, epSvcPair := range endpointsUpdateResult.DeletedUDPEndpoints {
    		if svcInfo, ok := svcPortMap[epSvcPair.ServicePortName]; ok {
    			endpointIP := proxyutil.IPPart(epSvcPair.Endpoint)
    			nodePort := svcInfo.NodePort()
    			var err error
    			if nodePort != 0 {
    				err = ct.ClearEntriesForPortNAT(endpointIP, nodePort, v1.ProtocolUDP)
    				if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 18:09:05 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. pkg/proxy/endpointslicecache.go

    	return true
    }
    
    // endpointsMapFromEndpointInfo computes an endpointsMap from endpointInfo that
    // has been grouped by service port and IP.
    func endpointsMapFromEndpointInfo(endpointInfoBySP map[ServicePortName]map[string]Endpoint) EndpointsMap {
    	endpointsMap := EndpointsMap{}
    
    	// transform endpointInfoByServicePort into an endpointsMap with sorted IPs.
    	for svcPortName, endpointSet := range endpointInfoBySP {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/etcd3/compact.go

    	"sync"
    	"time"
    
    	clientv3 "go.etcd.io/etcd/client/v3"
    	"k8s.io/klog/v2"
    )
    
    const (
    	compactRevKey = "compact_rev_key"
    )
    
    var (
    	endpointsMapMu sync.Mutex
    	endpointsMap   map[string]struct{}
    )
    
    func init() {
    	endpointsMap = make(map[string]struct{})
    }
    
    // StartCompactor starts a compactor in the background to compact old version of keys that's not needed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 17 02:54:36 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  8. pkg/proxy/topology.go

    	endpointsMap := make(map[string]Endpoint, len(clusterEndpoints)+len(localEndpoints))
    	for _, ep := range clusterEndpoints {
    		endpointsMap[ep.String()] = ep
    	}
    	for _, ep := range localEndpoints {
    		endpointsMap[ep.String()] = ep
    	}
    	allReachableEndpoints = make([]Endpoint, 0, len(endpointsMap))
    	for _, ep := range endpointsMap {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 06:46:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. pkg/proxy/endpointschangetracker_test.go

    }
    
    func TestGetLocalEndpointIPs(t *testing.T) {
    	testCases := []struct {
    		endpointsMap EndpointsMap
    		expected     map[types.NamespacedName]sets.Set[string]
    	}{{
    		// Case[0]: nothing
    		endpointsMap: EndpointsMap{},
    		expected:     map[types.NamespacedName]sets.Set[string]{},
    	}, {
    		// Case[1]: unnamed port
    		endpointsMap: EndpointsMap{
    			makeServicePortName("ns1", "ep1", "", 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)
  10. pkg/proxy/winkernel/proxier_test.go

    		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(),
    		network:             *hnsNetworkInfo,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 28 14:30:51 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top