Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for shardKey (0.12 sec)

  1. pilot/pkg/model/endpointshards_test.go

    )
    
    func TestUpdateServiceAccount(t *testing.T) {
    	var (
    		c1Key = ShardKey{Cluster: "c1"}
    		c2Key = ShardKey{Cluster: "c2"}
    	)
    
    	cluster1Endppoints := []*IstioEndpoint{
    		{Address: "10.172.0.1", ServiceAccount: "sa1"},
    		{Address: "10.172.0.2", ServiceAccount: "sa-vm1"},
    	}
    
    	testCases := []struct {
    		name      string
    		shardKey  ShardKey
    		endpoints []*IstioEndpoint
    		expect    bool
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 15:48:05 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/util/xdsfake/updater.go

    // LDS/RDS.
    func (fx *Updater) SvcUpdate(c model.ShardKey, hostname string, ns string, ev model.Event) {
    	select {
    	case fx.Events <- Event{Type: "service", ID: hostname, Namespace: ns}:
    	default:
    	}
    	if fx.Delegate != nil {
    		fx.Delegate.SvcUpdate(c, hostname, ns, ev)
    	}
    }
    
    func (fx *Updater) RemoveShard(shardKey model.ShardKey) {
    	select {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 18:40:34 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. pilot/pkg/model/endpointshards.go

    func ShardKeyFromRegistry(instance shardRegistry) ShardKey {
    	return ShardKey{Cluster: instance.Cluster(), Provider: instance.Provider()}
    }
    
    // ShardKey is the key for EndpointShards made of a key with the format "provider/cluster"
    type ShardKey struct {
    	Cluster  cluster.ID
    	Provider provider.ID
    }
    
    func (sk ShardKey) String() string {
    	return string(sk.Provider) + "/" + string(sk.Cluster) // format: %s/%s
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/memory/discovery.go

    		ip2workloadLabels:   map[string]labels.Instance{},
    		addresses:           map[string]model.AddressInfo{},
    	}
    }
    
    func (sd *ServiceDiscovery) shardKey() model.ShardKey {
    	return model.ShardKey{Cluster: sd.ClusterID, Provider: provider.Mock}
    }
    
    func (sd *ServiceDiscovery) AddWorkload(ip string, labels labels.Instance) {
    	sd.ip2workloadLabels[ip] = labels
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 23:10:01 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. pilot/pkg/xds/eds.go

    func (s *DiscoveryServer) EDSCacheUpdate(shard model.ShardKey, serviceName string, namespace string,
    	istioEndpoints []*model.IstioEndpoint,
    ) {
    	inboundEDSUpdates.Increment()
    	// Update the endpoint shards
    	s.Env.EndpointIndex.UpdateServiceEndpoints(shard, serviceName, namespace, istioEndpoints)
    }
    
    func (s *DiscoveryServer) RemoveShard(shardKey model.ShardKey) {
    	s.Env.EndpointIndex.DeleteShard(shardKey)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 15:58:06 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. 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)
  7. pilot/pkg/xds/endpoints/endpoint_builder.go

    	for _, shardKey := range keys {
    		if shardKey.Cluster != b.clusterID {
    			// If the downstream service is configured as cluster-local, only include endpoints that
    			// reside in the same cluster.
    			if isClusterLocal || b.service.Attributes.NodeLocal {
    				continue
    			}
    		}
    		eps = append(eps, shards.Shards[shardKey]...)
    	}
    	return eps
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. pilot/pkg/model/push_context.go

    	// registry name.
    	// Note: the difference with `EDSUpdate` is that it only update the cache rather than requesting a push
    	EDSCacheUpdate(shard ShardKey, hostname string, namespace string, entry []*IstioEndpoint)
    
    	// SvcUpdate is called when a service definition is updated/deleted.
    	SvcUpdate(shard ShardKey, hostname string, namespace string, event Event)
    
    	// ConfigUpdate is called to notify the XDS server of config updates and request a push.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
  9. pilot/pkg/model/push_context_test.go

    		services: []*Service{svc5_1, svc5_2},
    	}
    
    	env.EndpointIndex.shardsBySvc = map[string]map[string]*EndpointShards{
    		svc5_1.Hostname.String(): {
    			svc5_1.Attributes.Namespace: {
    				Shards: map[ShardKey][]*IstioEndpoint{
    					{Cluster: "Kubernets", Provider: provider.External}: {
    						&IstioEndpoint{
    							Address:         "1.1.1.1",
    							EndpointPort:    7000,
    							ServicePortName: "uds",
    						},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.29.0/core.v1.ResourceQuota.json

            "time": "2004-01-01T01:01:01Z",
            "fieldsType": "fieldsTypeValue",
            "fieldsV1": {},
            "subresource": "subresourceValue"
          }
        ]
      },
      "spec": {
        "hard": {
          "hardKey": "0"
        },
        "scopes": [
          "scopesValue"
        ],
        "scopeSelector": {
          "matchExpressions": [
            {
              "scopeName": "scopeNameValue",
              "operator": "operatorValue",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top