Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ShardsForService (0.21 sec)

  1. pilot/pkg/model/endpointshards.go

    		for nsKey, v := range v {
    			out[svcKey][nsKey] = v.DeepCopy()
    		}
    	}
    	return out
    }
    
    // ShardsForService returns the shards and true if they are found, or returns nil, false.
    func (e *EndpointIndex) ShardsForService(serviceName, namespace string) (*EndpointShards, bool) {
    	e.mu.RLock()
    	defer e.mu.RUnlock()
    	byNs, ok := e.shardsBySvc[serviceName]
    	if !ok {
    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/eds_test.go

    			}
    
    			// Validate that keys in service still exist in EndpointIndex - this prevents full push.
    			if _, ok := s.Discovery.Env.EndpointIndex.ShardsForService("flipflop.com", ""); !ok {
    				t.Fatalf("Expected service key %s to be present in EndpointIndex. But missing %v", "flipflop.com", s.Discovery.Env.EndpointIndex.Shardz())
    			}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  3. pilot/pkg/xds/endpoints/endpoint_builder.go

    	if b.IsDNSCluster() {
    		log.Infof("cluster %s in eds cluster, but its resolution now is updated to %v, skipping it.", b.clusterName, b.service.Resolution)
    		return nil
    	}
    
    	epShards, f := endpointIndex.ShardsForService(string(b.hostname), b.service.Attributes.Namespace)
    	if !f {
    		// Shouldn't happen here
    		log.Debugf("can not find the endpointShards for cluster %s", b.clusterName)
    		return nil
    	}
    	return epShards
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top