- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,825 for Fits (0.14 sec)
-
pkg/scheduler/framework/plugins/nodename/node_name.go
func (pl *NodeName) Filter(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status { if !Fits(pod, nodeInfo) { return framework.NewStatus(framework.UnschedulableAndUnresolvable, ErrReason) } return nil } // Fits actually checks if the pod fits the node. func Fits(pod *v1.Pod, nodeInfo *framework.NodeInfo) bool { return len(pod.Spec.NodeName) == 0 || pod.Spec.NodeName == nodeInfo.Node().Name }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 20 09:49:54 UTC 2023 - 2.3K bytes - Viewed (0) -
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) -
pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go
fits := status.IsSuccess() if !fits { if err := removePod(pi); err != nil { return false, err } rpi := pi.Pod victims = append(victims, rpi) logger.V(5).Info("Pod is a potential preemption victim on node", "pod", klog.KObj(rpi), "node", klog.KObj(nodeInfo.Node())) } return fits, nil } for _, p := range violatingVictims {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 25 19:36:04 UTC 2023 - 12.7K bytes - Viewed (0) -
test/abi/double_nested_struct.go
a, b string } type stringPairPair struct { x, y stringPair } // The goal of this test is to be sure that the call arg/result expander works correctly // for a corner case of passing a 2-nested struct that fits in registers to/from calls. //go:registerparams //go:noinline func H(spp stringPairPair) string { return spp.x.a + " " + spp.x.b + " " + spp.y.a + " " + spp.y.b } //go:registerparams //go:noinline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.1K bytes - Viewed (0) -
test/abi/double_nested_addressed_struct.go
type stringPairPair struct { x, y stringPair } // The goal of this test is to be sure that the call arg/result expander works correctly // for a corner case of passing a 2-nested struct that fits in registers to/from calls. // AND, the struct has its address taken. //go:registerparams //go:noinline func H(spp stringPairPair) string { F(&spp) return spp.x.a + " " + spp.x.b + " " + spp.y.a + " " + spp.y.b } //go:registerparams
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
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) -
platforms/core-configuration/kotlin-dsl/doc/c4/README.adoc
image::images/C4_3_Component.svg[] NOTE: This diagram diverges from the C4 Model because the scope is the whole Kotlin DSL system instead of having one diagram per container.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Nov 19 00:01:54 UTC 2023 - 1.8K bytes - Viewed (0) -
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) -
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) -
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)