Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 58 for circuit (0.23 sec)

  1. pkg/kubelet/cm/cpumanager/policy_static.go

    	// resource when considering pod alignment.
    	// In terms of hints, this is equal to: TopologyHints[NUMANodeAffinity: nil, Preferred: true].
    	if requested == 0 {
    		return nil
    	}
    
    	// Short circuit to regenerate the same hints if there are already
    	// guaranteed CPUs allocated to the Container. This might happen after a
    	// kubelet restart, for example.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  2. pilot/pkg/config/kube/gateway/controller.go

    	}
    	return slices.Filter(cfgs, func(c config.Config) bool {
    		return c.Namespace == namespace
    	})
    }
    
    // hasResources determines if there are any gateway-api resources created at all.
    // If not, we can short circuit all processing to avoid excessive work.
    func (kr GatewayResources) hasResources() bool {
    	return len(kr.GatewayClass) > 0 ||
    		len(kr.Gateway) > 0 ||
    		len(kr.HTTPRoute) > 0 ||
    		len(kr.GRPCRoute) > 0 ||
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. src/go/doc/doc.go

    		}
    	}
    
    	// TODO(dmitshur,gri): A relatively high level call to ast.NewPackage with a simpleImporter
    	// ast.Importer implementation is made below. It might be possible to short-circuit and simplify.
    
    	// Compute package documentation.
    	pkg, _ := ast.NewPackage(fset, goFiles, simpleImporter, nil) // Ignore errors that can happen due to unresolved identifiers.
    	p := New(pkg, importPath, mode)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. pilot/pkg/model/config.go

    func OldestMatchingHost(needle host.Name, specific map[host.Name]config.Config, wildcard map[host.Name]config.Config) (host.Name, config.Config, bool) {
    	// The algorithm is a bit different than MostSpecificHostMatch. We can't short-circuit on the first
    	// match, regardless of whether it's specific or wildcarded. This is because we have to check the timestamp
    	// of all configs to make sure there's not an older matching one that we should use instead.
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 08:51:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/network.go

    func (n *networkManager) extractGatewaysInner(svc *model.Service) bool {
    	n.Lock()
    	defer n.Unlock()
    	previousGateways := n.networkGatewaysBySvc[svc.Hostname]
    	gateways := n.getGatewayDetails(svc)
    	// short circuit for most services.
    	if len(previousGateways) == 0 && len(gateways) == 0 {
    		return false
    	}
    
    	newGateways := make(model.NetworkGatewaySet)
    	// check if we have node port mappings
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 22:23:22 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/memorymanager/policy_static.go

    		return nil
    	}
    
    	for _, ctn := range append(pod.Spec.InitContainers, pod.Spec.Containers...) {
    		containerBlocks := s.GetMemoryBlocks(string(pod.UID), ctn.Name)
    		// Short circuit to regenerate the same hints if there are already
    		// memory allocated for the container. This might happen after a
    		// kubelet restart, for example.
    		if containerBlocks != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 12 07:34:55 UTC 2023
    - 34K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeRangeMap.java

          remove(range);
          entriesByLowerBound.put(range.lowerBound, new RangeMapEntry<K, V>(range, value));
        }
      }
    
      @Override
      public void putCoalescing(Range<K> range, V value) {
        // don't short-circuit if the range is empty - it may be between two ranges we can coalesce.
        if (entriesByLowerBound.isEmpty()) {
          put(range, value);
          return;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. misc/go_android_exec/main.go

    	// However, if the os.Stderr (or os.Stdout) file descriptors are
    	// passed on, the hanging adb subprocess will hold them open and
    	// go test will hang forever.
    	//
    	// Avoid that by wrapping stderr, breaking the short circuit and
    	// forcing cmd.Run to use another pipe and goroutine to pass
    	// along stderr from adb.
    	cmd.Stderr = struct{ io.Writer }{os.Stderr}
    	err := cmd.Run()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/node/graph.go

    	nodeVertex := g.getOrCreateVertex_locked(nodeVertexType, "", pod.Spec.NodeName)
    	g.graph.SetEdge(newDestinationEdge(podVertex, nodeVertex, nodeVertex))
    
    	// Short-circuit adding edges to other resources for mirror pods.
    	// A node must never be able to create a pod that grants them permissions on other API objects.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. pkg/controller/tainteviction/taint_eviction.go

    	pods, err := tc.getPodsAssignedToNode(node.Name)
    	if err != nil {
    		logger.Error(err, "Failed to get pods assigned to node", "node", klog.KObj(node))
    		return
    	}
    	if len(pods) == 0 {
    		return
    	}
    	// Short circuit, to make this controller a bit faster.
    	if len(taints) == 0 {
    		logger.V(4).Info("All taints were removed from the node. Cancelling all evictions...", "node", klog.KObj(node))
    		for i := range pods {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top