Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 919 for Instances (0.46 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning/algorithm_test.go

    	err := json.Unmarshal([]byte(smallInstance), &obj)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    	instances := make([]map[string]interface{}, 0, b.N)
    	for i := 0; i < b.N; i++ {
    		instances = append(instances, runtime.DeepCopyJSON(obj))
    	}
    
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		Prune(instances[i], schema, true)
    	}
    }
    
    func BenchmarkDeepCopy(b *testing.B) {
    	b.StopTimer()
    	b.ReportAllocs()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

    """
    
            expect:
            fails()
            failure.assertHasCause("Could not create an instance of type Thing.")
            failure.assertHasCause("Could not generate a decorated class for type Thing.")
            failure.assertHasCause("Cannot have abstract method Thing.getProp().")
        }
    
        def "services are injected into instances using constructor or getter"() {
            buildFile """
                class Thing1 {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. hack/make-rules/test-e2e-node.sh

        --image-project="${image_project}" --instance-name-prefix="${instance_prefix}" \
        --delete-instances="${delete_instances}" --test_args="${test_args}" --instance-metadata="${metadata}" \
        --image-config-file="${image_config_file}" --system-spec-name="${system_spec_name}" \
        --runtime-config="${runtime_config}" --preemptible-instances="${preemptible_instances}" \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 16 09:46:28 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/named.go

    //
    // To prevent infinite expansion of named instances that are created outside of
    // type-checking, instances share a Context with other instances created during
    // their expansion. Via the pidgeonhole principle, this guarantees that in the
    // presence of a cycle of named types, expansion will eventually find an
    // existing instance in the Context and short-circuit the expansion.
    //
    // Once an instance is complete, we can nil out this shared Context to unpin
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/plugins/DefaultPluginManager.java

            // That is, the plugin container has the instance that we want, but we don't think (we can't know) it has been applied
            Object instance = findInstance(pluginClass, pluginContainer);
            if (instance == null) {
                instance = instantiatePlugin(pluginClass);
            }
    
            return Cast.uncheckedCast(instance);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/listener_builder_test.go

    		buildServiceWithPort("test2.com", 81, protocol.Unsupported, tnow),
    		buildServiceWithPort("test3.com", 82, protocol.TCP, tnow),
    	}
    	instances := make([]*model.ServiceInstance, 0, len(services))
    	for _, s := range services {
    		instances = append(instances, &model.ServiceInstance{
    			Service: s,
    			Endpoint: &model.IstioEndpoint{
    				EndpointPort: uint32(s.Ports[0].Port),
    				Address:      "1.1.1.1",
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. cluster/gce/upgrade.sh

      echo "== Draining ${instance}. == " >&2
      local drain_rc
      "${KUBE_ROOT}/cluster/kubectl.sh" drain --delete-emptydir-data --force --ignore-daemonsets "${instance}" \
        && drain_rc=$? || drain_rc=$?
      if [[ "${drain_rc}" != 0 ]]; then
        echo "== FAILED to drain ${instance} =="
        return ${drain_rc}
      fi
    
      # Recreate instance
      echo "== Recreating instance ${instance}. ==" >&2
      local recreate_rc
      local recreate
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 21:13:22 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  8. src/go/types/named.go

    //
    // To prevent infinite expansion of named instances that are created outside of
    // type-checking, instances share a Context with other instances created during
    // their expansion. Via the pidgeonhole principle, this guarantees that in the
    // presence of a cycle of named types, expansion will eventually find an
    // existing instance in the Context and short-circuit the expansion.
    //
    // Once an instance is complete, we can nil out this shared Context to unpin
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. src/go/types/instantiate.go

    			return nil, &ArgumentError{i, err}
    		}
    	}
    
    	inst := (*Checker)(nil).instance(nopos, orig_, targs, nil, ctxt)
    	return inst, nil
    }
    
    // instance instantiates the given original (generic) function or type with the
    // provided type arguments and returns the resulting instance. If an identical
    // instance exists already in the given contexts, it returns that instance,
    // otherwise it creates a new one.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. pilot/pkg/model/context.go

    	instances := serviceDiscovery.GetProxyServiceTargets(node)
    
    	// Keep service instances in order of creation/hostname.
    	sort.SliceStable(instances, func(i, j int) bool {
    		if instances[i].Service != nil && instances[j].Service != nil {
    			if !instances[i].Service.CreationTime.Equal(instances[j].Service.CreationTime) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (1)
Back to top