Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,828 for Instances (0.14 sec)

  1. pkg/test/framework/components/echo/instances.go

    	sort.Stable(out)
    	return out
    }
    
    // Copy this Instances array.
    func (i Instances) Copy() Instances {
    	return append(Instances{}, i...)
    }
    
    // Append returns a new Instances array with the given values appended.
    func (i Instances) Append(instances Instances) Instances {
    	return append(i.Copy(), instances...)
    }
    
    // Restart each Instance
    func (i Instances) Restart() error {
    	g := multierror.Group{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 18:26:17 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. pkg/bootstrap/option/instances.go

    	return newOption("nodeID", value)
    }
    
    func NodeType(value string) Instance {
    	ntype := strings.Split(value, "~")[0]
    	return newOption("nodeType", ntype)
    }
    
    func XdsType(value string) Instance {
    	return newOption("xds_type", value)
    }
    
    func Region(value string) Instance {
    	return newOptionOrSkipIfZero("region", value)
    }
    
    func Zone(value string) Instance {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. releasenotes/notes/update-se-instances.yaml

    dwq <******@****.***> 1656083735 +0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 24 15:15:35 UTC 2022
    - 163 bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go

    								{
    									Instance: &resourceapi.NamedResourcesInstance{Name: "X"},
    								},
    								{
    									Instance: &resourceapi.NamedResourcesInstance{Name: "Y"},
    								},
    							},
    						},
    					},
    					"driver-b": {
    						NamedResources: namedresourcesmodel.Model{
    							Instances: []namedresourcesmodel.InstanceAllocation{
    								{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go

    		Selector: `attributes.bool["usable"]`,
    	}
    
    	instance1 := "instance-1"
    	oneInstance := Model{
    		Instances: []InstanceAllocation{{
    			Instance: &resourceapi.NamedResourcesInstance{
    				Name: instance1,
    			},
    		}},
    	}
    
    	instance2 := "instance-2"
    	twoInstances := Model{
    		Instances: []InstanceAllocation{
    			{
    				Instance: &resourceapi.NamedResourcesInstance{
    					Name: instance1,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel.go

    			if instance.Allocated {
    				continue
    			}
    			if c.filter != nil {
    				okay, err := c.filter.Evaluate(ctx, instance.Instance.Attributes)
    				if err != nil {
    					return nil, fmt.Errorf("evaluate filter CEL expression: %w", err)
    				}
    				if !okay {
    					continue
    				}
    			}
    			okay, err := request.Evaluate(ctx, instance.Instance.Attributes)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:26:16 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/serviceentry/store.go

    			continue
    		}
    		if _, f := s.instances[ikey]; !f {
    			s.instances[ikey] = map[configKeyWithParent][]*model.ServiceInstance{}
    		}
    		s.instancesByHostAndPort.Insert(hostPort)
    		s.instances[ikey][key] = append(s.instances[ikey][key], instance)
    		if instance.Endpoint.Address != "" {
    			s.ip2instance[instance.Endpoint.Address] = append(s.ip2instance[instance.Endpoint.Address], instance)
    		}
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    	}
    }
    
    func sortServiceTargets(instances []model.ServiceTarget) {
    	sort.Slice(instances, func(i, j int) bool {
    		if instances[i].Service.Hostname == instances[j].Service.Hostname {
    			if instances[i].Port.TargetPort == instances[j].Port.TargetPort {
    				return instances[i].Port.TargetPort < instances[j].Port.TargetPort
    			}
    		}
    		return instances[i].Service.Hostname < instances[j].Service.Hostname
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/echotest/filters.go

    			}
    		}
    
    		return outServices.Instances()
    	}
    }
    
    func notRegularPods() Filter {
    	return func(instances echo.Instances) echo.Instances {
    		return match.NotRegularPod.GetMatches(instances)
    	}
    }
    
    // FilterMatch returns a filter that simply applies the given matcher.
    func FilterMatch(matcher match.Matcher) Filter {
    	return func(instances echo.Instances) echo.Instances {
    		return matcher.GetMatches(instances)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 29 23:48:45 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/match/matcher.go

    	"istio.io/istio/pkg/test/framework/components/echo"
    )
    
    // Matcher is used to filter matching instances
    type Matcher func(echo.Instance) bool
    
    // GetMatches returns the subset of echo.Instances that match this Matcher.
    func (m Matcher) GetMatches(i echo.Instances) echo.Instances {
    	out := make(echo.Instances, 0)
    	for _, i := range i {
    		if m(i) {
    			out = append(out, i)
    		}
    	}
    	return out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 21 20:45:12 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top