Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,683 for Fits (0.15 sec)

  1. pkg/scheduler/framework/plugins/nodeports/node_ports.go

    	wantPorts, err := getPreFilterState(cycleState)
    	if err != nil {
    		return framework.AsStatus(err)
    	}
    
    	fits := fitsPorts(wantPorts, nodeInfo)
    	if !fits {
    		return framework.NewStatus(framework.Unschedulable, ErrReason)
    	}
    
    	return nil
    }
    
    // Fits checks if the pod fits the node.
    func Fits(pod *v1.Pod, nodeInfo *framework.NodeInfo) bool {
    	return fitsPorts(getContainerPorts(pod), nodeInfo)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 10:53:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/framework/fake_extender.go

    		nodeInfo, _ := nodeInfos.Get(nodeName)
    		extenderVictimPods, extenderPDBViolations, fits, err := f.selectVictimsOnNodeByExtender(logger, pod, nodeInfo)
    		if err != nil {
    			return nil, err
    		}
    		// If it's unfit after extender's preemption, this node is unresolvable by preemption overall,
    		// let's remove it from potential preemption nodes.
    		if !fits {
    			delete(nodeNameToVictimsCopy, nodeName)
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/fit.go

    	return framework.QueueSkip, nil
    }
    
    // isFit checks if the pod fits the node. If the node is nil, it returns false.
    // It constructs a fake NodeInfo object for the node and checks if the pod fits the node.
    func isFit(pod *v1.Pod, node *v1.Node) bool {
    	if node == nil {
    		return false
    	}
    	nodeInfo := framework.NewNodeInfo()
    	nodeInfo.SetNode(node)
    	return len(Fits(pod, nodeInfo)) == 0
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  4. platforms/jvm/jvm-services/src/main/java/org/gradle/api/internal/artifacts/JavaEcosystemSupport.java

                Usage producerValue = details.getProducerValue();
                if (consumerValue == null) {
                    // consumer didn't express any preferences, everything fits
                    details.compatible();
                    return;
                }
                if (consumerValue.getName().equals(Usage.JAVA_API)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 19:13:00 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    	}{
    		{
    			pod: &v1.Pod{},
    			nodeInfo: framework.NewNodeInfo(
    				newResourcePod(framework.Resource{MilliCPU: 10, Memory: 20})),
    			name:                      "no resources requested always fits",
    			wantInsufficientResources: []InsufficientResource{},
    		},
    		{
    			pod: newResourcePod(framework.Resource{MilliCPU: 1, Memory: 1}),
    			nodeInfo: framework.NewNodeInfo(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  6. src/database/sql/driver/types.go

    //
    //   - converting from the [Value] types as provided by the sql package
    //     into a database table's specific column type and making sure it
    //     fits, such as making sure a particular int64 fits in a
    //     table's uint16 column.
    //
    //   - converting a value as given from the database into one of the
    //     driver [Value] types.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/ppc64/a.out.go

    	C_16CON    /* Any constant which fits into 16 bits. Can be signed or unsigned */
    	C_U31CON   /* 31 bit unsigned constant */
    	C_S32CON   /* 32 bit signed constant */
    	C_U32CON   /* 32 bit unsigned constant */
    	C_32CON    /* Any constant which fits into 32 bits. Can be signed or unsigned */
    	C_S34CON   /* 34 bit signed constant */
    	C_64CON    /* Any constant which fits into 64 bits. Can be signed or unsigned */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 18:50:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode.go

    		// use 0x7e00.
    		NaNConvert: cbor.NaNConvert7e00,
    		InfConvert: cbor.InfConvertFloat16,
    
    		// Prefer encoding math/big.Int to one of the 64-bit integer types if it fits. When
    		// later decoded into Unstructured, the set of allowable concrete numeric types is
    		// limited to int64 and float64, so the distinction between big integer and integer
    		// can't be preserved.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 15 15:31:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/go/internal/gcimporter/support.go

    	panic(fmt.Sprintf(format, args...))
    }
    
    // deltaNewFile is a magic line delta offset indicating a new file.
    // We use -64 because it is rare; see issue 20080 and CL 41619.
    // -64 is the smallest int that fits in a single byte as a varint.
    const deltaNewFile = -64
    
    // Synthesize a token.Pos
    type fakeFileSet struct {
    	fset  *token.FileSet
    	files map[string]*fileInfo
    }
    
    type fileInfo struct {
    	file     *token.File
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/encoding/json/bench_test.go

    			}
    			if _, err := Marshal(dummy); err == nil {
    				b.Fatal("Marshal error: got nil, want non-nil")
    			}
    		}
    	}
    }
    
    func BenchmarkMarshalBytes(b *testing.B) {
    	b.ReportAllocs()
    	// 32 fits within encodeState.scratch.
    	b.Run("32", benchMarshalBytes(32))
    	// 256 doesn't fit in encodeState.scratch, but is small enough to
    	// allocate and avoid the slower base64.NewEncoder.
    	b.Run("256", benchMarshalBytes(256))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:00:17 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top