Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 139 for nodeInfos (0.17 sec)

  1. pkg/scheduler/framework/autoscaler_contract/framework_contract_test.go

    	RunPreFilterPlugins(ctx context.Context, state *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status)
    	RunFilterPlugins(context.Context, *framework.CycleState, *v1.Pod, *framework.NodeInfo) *framework.Status
    }
    
    func TestFrameworkContract(t *testing.T) {
    	var f framework.Framework
    	var c frameworkContract = f
    	assert.Nil(t, c)
    }
    
    func TestNewFramework(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 23 02:17:34 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. pkg/scheduler/framework/plugins/nodevolumelimits/utils.go

    	} else {
    		tok := strings.Split(mpa, ",")
    		mpaSet = sets.New(tok...)
    	}
    
    	return mpaSet.Has(pluginName)
    }
    
    // volumeLimits returns volume limits associated with the node.
    func volumeLimits(n *framework.NodeInfo) map[v1.ResourceName]int64 {
    	volumeLimits := map[v1.ResourceName]int64{}
    	for k, v := range n.Allocatable.ScalarResources {
    		if v1helper.IsAttachableVolumeResourceName(k) {
    			volumeLimits[k] = v
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/container_manager.go

    	// requests for device plugin resources, and returns an error if fails.
    	// Otherwise, it updates allocatableResource in nodeInfo if necessary,
    	// to make sure it is at least equal to the pod's requested capacity for
    	// any registered device plugin resource
    	UpdatePluginResources(*schedulerframework.NodeInfo, *lifecycle.PodAdmitAttributes) error
    
    	InternalContainerLifecycle() InternalContainerLifecycle
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. pkg/scheduler/schedule_one_test.go

    	return false
    }
    
    func (f *fakeExtender) Filter(pod *v1.Pod, nodes []*framework.NodeInfo) ([]*framework.NodeInfo, extenderv1.FailedNodesMap, extenderv1.FailedNodesMap, error) {
    	return nil, nil, nil, nil
    }
    
    func (f *fakeExtender) Prioritize(
    	_ *v1.Pod,
    	_ []*framework.NodeInfo,
    ) (hostPriorities *extenderv1.HostPriorityList, weight int64, err error) {
    	return nil, 0, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  7. plugin/pkg/admission/noderestriction/admission_test.go

    			attributes: admission.NewAttributesRecord(nodeInfo, nil, csiNodeKind, nodeInfo.Namespace, nodeInfo.Name, csiNodeResource, "", admission.Create, &metav1.CreateOptions{}, false, mynode),
    			err:        "",
    		},
    		{
    			name:       "allowed update node CSINode",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 73.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go

    		t.Run(test.name, func(t *testing.T) {
    			_, ctx := ktesting.NewTestContext(t)
    			nodeInfo := framework.NewNodeInfo()
    			nodeInfo.SetNode(test.node)
    			p, err := New(ctx, nil, nil, feature.Features{})
    			if err != nil {
    				t.Fatalf("creating plugin: %v", err)
    			}
    			gotStatus := p.(framework.FilterPlugin).Filter(ctx, nil, test.pod, nodeInfo)
    			if !reflect.DeepEqual(gotStatus, test.wantStatus) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top