Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 873 for NodeName (0.15 sec)

  1. pkg/scheduler/framework/plugins/examples/stateful/stateful.go

    // point. In this trivial example, the Reserve method allocates an array of
    // strings.
    func (mp *MultipointExample) Reserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status {
    	// Reserve is not called concurrently, and so we don't need to lock.
    	mp.executionPoints = append(mp.executionPoints, "reserve")
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 03:43:17 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. pkg/auth/nodeidentifier/interfaces.go

    type NodeIdentifier interface {
    	// NodeIdentity determines node information from the given user.Info.
    	// nodeName is the name of the Node API object associated with the user.Info,
    	// and may be empty if a specific node cannot be determined.
    	// isNode is true if the user.Info represents an identity issued to a node.
    	NodeIdentity(user.Info) (nodeName string, isNode bool)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 26 19:56:33 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/examples/multipoint/multipoint.go

    		data: s.data,
    	}
    	return copy
    }
    
    // Reserve is the function invoked by the framework at "reserve" extension point.
    func (mc CommunicatingPlugin) Reserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status {
    	if pod == nil {
    		return framework.NewStatus(framework.Error, "pod cannot be nil")
    	}
    	if pod.Name == "my-test-pod" {
    		state.Write(framework.StateKey(pod.Name), &stateData{data: "never bind"})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 03:43:17 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. pkg/kubelet/client/kubelet_client.go

    	}, nil
    }
    
    // GetConnectionInfo retrieves connection info from the status of a Node API object.
    func (k *NodeConnectionInfoGetter) GetConnectionInfo(ctx context.Context, nodeName types.NodeName) (*ConnectionInfo, error) {
    	node, err := k.nodes.Get(ctx, string(nodeName), metav1.GetOptions{})
    	if err != nil {
    		return nil, err
    	}
    
    	// Find a kubelet-reported address, using preferred address type
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 01:34:49 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_attacher.go

    	return nil
    }
    
    // getAttachmentName returns csi-<sha256(volName,csiDriverName,NodeName)>
    func getAttachmentName(volName, csiDriverName, nodeName string) string {
    	result := sha256.Sum256([]byte(fmt.Sprintf("%s%s%s", volName, csiDriverName, nodeName)))
    	return fmt.Sprintf("csi-%x", result)
    }
    
    func makeDeviceMountPath(plugin *csiPlugin, spec *volume.Spec) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  6. src/os/sys_linux.go

    	var un syscall.Utsname
    	err = syscall.Uname(&un)
    
    	var buf [512]byte // Enough for a DNS name.
    	for i, b := range un.Nodename[:] {
    		buf[i] = uint8(b)
    		if b == 0 {
    			name = string(buf[:i])
    			break
    		}
    	}
    	// If we got a name and it's not potentially truncated
    	// (Nodename is 65 bytes), return it.
    	if err == nil && len(name) > 0 && len(name) < 64 {
    		return name, nil
    	}
    	if runtime.GOOS == "android" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 02 14:41:57 UTC 2018
    - 1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		Spec:       example.PodSpec{NodeName: "machine"},
    	}
    	podB := &example.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "test"},
    		Spec:       example.PodSpec{NodeName: "machine2"},
    	}
    	podAWithResourceVersion := &example.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "test", ResourceVersion: "7"},
    		Spec:       example.PodSpec{NodeName: "machine"},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  8. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    		if err := nc.reconcileNodeLabels(ctx, nodeName); err != nil {
    			logger.Error(err, "Failed to reconcile labels for node, requeue it", "node", klog.KRef("", nodeName))
    			// TODO(yujuhong): Add nodeName back to the queue
    		}
    		nc.nodeUpdateQueue.Done(nodeName)
    	}
    }
    
    func (nc *Controller) doNoScheduleTaintingPass(ctx context.Context, nodeName string) error {
    	node, err := nc.nodeLister.Get(nodeName)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity_test.go

    			}
    			var gotList framework.NodeScoreList
    			for _, n := range test.nodes {
    				nodeName := n.ObjectMeta.Name
    				score, status := p.(framework.ScorePlugin).Score(ctx, state, test.pod, nodeName)
    				if !status.IsSuccess() {
    					t.Errorf("unexpected error: %v", status)
    				}
    				gotList = append(gotList, framework.NodeScore{Name: nodeName, Score: score})
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 38.7K bytes
    - Viewed (0)
  10. pkg/apis/discovery/validation/validation.go

    			}
    		}
    
    		if endpoint.NodeName != nil {
    			nnPath := idxPath.Child("nodeName")
    			for _, msg := range apivalidation.ValidateNodeName(*endpoint.NodeName, false) {
    				allErrs = append(allErrs, field.Invalid(nnPath, *endpoint.NodeName, msg))
    			}
    		}
    
    		topologyPath := idxPath.Child("deprecatedTopology")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 08:49:15 UTC 2021
    - 7.8K bytes
    - Viewed (0)
Back to top