Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetOrCreateEndpointShard (0.15 sec)

  1. pilot/pkg/model/endpointshards.go

    	if !ok {
    		return nil, false
    	}
    	shards, ok := byNs[namespace]
    	return shards, ok
    }
    
    // GetOrCreateEndpointShard returns the shards. The second return parameter will be true if this service was seen
    // for the first time.
    func (e *EndpointIndex) GetOrCreateEndpointShard(serviceName, namespace string) (*EndpointShards, bool) {
    	e.mu.Lock()
    	defer e.mu.Unlock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. pilot/pkg/xds/endpoints/ep_filters_test.go

    			shards.Shards[sk][i] = ep
    		}
    	}
    	// convert to EndpointIndex
    	index := model.NewEndpointIndex(model.NewXdsCache())
    	for shardKey, testEps := range shards.Shards {
    		svc, _ := index.GetOrCreateEndpointShard("example.ns.svc.cluster.local", "ns")
    		svc.Lock()
    		svc.Shards[shardKey] = testEps
    		svc.Unlock()
    	}
    	return index
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top