Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,407 for distances (0.22 sec)

  1. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel.go

    	if resources == nil {
    		return
    	}
    
    	for i := range resources.Instances {
    		m.Instances = append(m.Instances, InstanceAllocation{Instance: &resources.Instances[i]})
    	}
    }
    
    // AddAllocation may get called after AddResources to mark some resource
    // instances as allocated. The result parameter may be nil.
    func AddAllocation(m *Model, result *resourceapi.NamedResourcesAllocationResult) {
    	if result == nil {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:26:16 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go

    								},
    							},
    						},
    					},
    				},
    			}},
    		},
    
    		"two-instances": {
    			slices: sliceList{
    				&resourceapi.ResourceSlice{
    					NodeName:   "node",
    					DriverName: "driver",
    					ResourceModel: resourceapi.ResourceModel{
    						NamedResources: &resourceapi.NamedResourcesResources{
    							Instances: []resourceapi.NamedResourcesInstance{{Name: "one"}, {Name: "two"}},
    						},
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/test/framework/components/echo/echotest/echotest.go

    }
    
    // New creates a *T using the given applications as sources and destinations for each subtest.
    func New(ctx framework.TestContext, instances echo.Instances) *T {
    	s, d := make(echo.Instances, len(instances)), make(echo.Instances, len(instances))
    	copy(s, instances)
    	copy(d, instances)
    	t := &T{
    		rootCtx:      ctx,
    		cfg:          config.New(ctx),
    		sources:      s,
    		destinations: d,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 27 23:26:33 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/echotest/filters_test.go

    			filter: func(instances echo.Instances) echo.Instances {
    				return echotest.ReachableDestinations(naked1, instances)
    			},
    			expect: echo.Instances{
    				// only same network/cluster, no VMs
    				a1, a1Ns2, b1, c1, headless1, naked1, external1,
    			},
    		},
    		"ReachableDestinations from vm": {
    			filter: func(instances echo.Instances) echo.Instances {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ModelPathSuggestionProviderTest.groovy

        }
    
        def "suggests model paths with Levenshtein distance lower than 4"() {
            when:
            availablePaths = ["task.afoobar", "tasks.boofar", "tasks.foobar", "tasks.f", "fooba"]
    
            then:
            suggestionsFor("tasks.fooba") == ["tasks.foobar", "task.afoobar", "tasks.boofar"]
        }
    
        def "suggests model paths with Levenshtein distance lower than half it's length for strings shorter than 6 characters"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/InstantiatorFactory.java

         *
         * <p>Use for any non-model types for which services or user provided constructor values need to injected. This is simply a convenience for {@link #injectScheme()}.
         *
         * @param services The services to make available to instances.
         */
        InstanceGenerator inject(ServiceLookup services);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/gateway/context.go

    // ResolveGatewayInstances attempts to resolve all instances that a gateway will be exposed on.
    // Note: this function considers *all* instances of the service; its possible those instances will not actually be properly functioning
    // gateways, so this is not 100% accurate, but sufficient to expose intent to users.
    // The actual configuration generation is done on a per-workload basis and will get the exact set of matched instances for that workload.
    // Four sets are exposed:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 18:33:02 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top