- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 56 for nodeInfos (0.25 sec)
-
pkg/scheduler/framework/types_test.go
t.Errorf("expected: %#v, got: %#v", expected, ni) } } func TestNodeInfoClone(t *testing.T) { nodeName := "test-node" tests := []struct { nodeInfo *NodeInfo expected *NodeInfo }{ { nodeInfo: &NodeInfo{ Requested: &Resource{}, NonZeroRequested: &Resource{}, Allocatable: &Resource{}, Generation: 2, UsedPorts: HostPortInfo{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 45.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodevolumelimits/csi.go
func (pl *CSILimits) Filter(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status { // If the new pod doesn't have any volume attached to it, the predicate will always be true if len(pod.Spec.Volumes) == 0 { return nil } node := nodeInfo.Node() logger := klog.FromContext(ctx)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 18:07:11 UTC 2024 - 16.6K bytes - Viewed (0) -
pkg/scheduler/internal/cache/snapshot_test.go
} testCases := []struct { name string pods []*v1.Pod nodes []*v1.Node expectedNodesInfos []*framework.NodeInfo expectedNumNodes int expectedPodsWithAffinity int expectedPodsWithAntiAffinity int expectedUsedPVCSet sets.Set[string] }{ { name: "no pods no nodes",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 05 08:00:25 UTC 2023 - 12K bytes - Viewed (0) -
pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go
if tc.hasModified && helper.Semantic.DeepEqual(nodeInfo, tc.existingCSINode) { t.Errorf("existing CSINode %v; got: %v", tc.existingCSINode, nodeInfo) } if !tc.hasModified && !helper.Semantic.DeepEqual(nodeInfo, tc.existingCSINode) { t.Errorf("existing CSINode %v; got: %v", tc.existingCSINode, nodeInfo) } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 17 02:02:59 UTC 2022 - 34.3K bytes - Viewed (0) -
pkg/scheduler/eventhandlers_test.go
}, want: []bool{false, true, false, false}, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { nodeInfo := framework.NewNodeInfo(tt.existingPods...) nodeInfo.SetNode(tt.nodeFn()) preCheckFn := preCheckForNode(nodeInfo) var got []bool for _, pod := range tt.pods { got = append(got, preCheckFn(pod)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 10 14:38:54 UTC 2024 - 21.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodevolumelimits/non_csi.go
return nil } // Filter invoked at the filter extension point. func (pl *nonCSILimits) Filter(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status { // If a pod doesn't have any volume attached to it, the predicate will always be true. // Thus we make a fast path for it, to avoid unnecessary computations in this case.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 30 23:00:56 UTC 2023 - 19.6K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumezone/volume_zone.go
// require calling out to the cloud provider. It seems that we are moving away // from inline volume declarations anyway. func (pl *VolumeZone) Filter(ctx context.Context, cs *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status { logger := klog.FromContext(ctx) // If a pod doesn't have any volume attached to it, the predicate will always be true.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:13:06 UTC 2024 - 10.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/volume_binding.go
// PVCs can be matched with an available and node-compatible PV. func (pl *VolumeBinding) Filter(ctx context.Context, cs *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status { logger := klog.FromContext(ctx) node := nodeInfo.Node() state, err := getStateData(cs) if err != nil { return framework.AsStatus(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:13:06 UTC 2024 - 16.4K bytes - Viewed (0) -
cluster/gce/upgrade.sh
} function print-node-version-info() { echo "== $1 Node OS and Kubelet Versions ==" "${KUBE_ROOT}/cluster/kubectl.sh" get nodes -o=jsonpath='{range .items[*]}name: "{.metadata.name}", osImage: "{.status.nodeInfo.osImage}", kubeletVersion: "{.status.nodeInfo.kubeletVersion}"{"\n"}{end}' } function upgrade-master() { local num_masters num_masters=$(get-master-replicas-count) if [[ "${num_masters}" -gt 1 ]]; then
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 21:13:22 UTC 2024 - 25.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go
} return csiNodeLister } func getNodeWithPodAndVolumeLimits(limitSource string, pods []*v1.Pod, limit int32, driverNames ...string) (*framework.NodeInfo, *storagev1.CSINode) { nodeInfo := framework.NewNodeInfo(pods...) node := &v1.Node{ ObjectMeta: metav1.ObjectMeta{Name: "node-for-max-pd-test-1"}, Status: v1.NodeStatus{ Allocatable: v1.ResourceList{}, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 18:07:11 UTC 2024 - 28.6K bytes - Viewed (0)