Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 345 for NodeName (0.31 sec)

  1. pkg/scheduler/internal/cache/debugger/comparer_test.go

    	compare := CacheComparer{}
    	nodes := []*v1.Node{}
    	for _, nodeName := range actual {
    		node := &v1.Node{}
    		node.Name = nodeName
    		nodes = append(nodes, node)
    	}
    
    	nodeInfo := make(map[string]*framework.NodeInfo)
    	for _, nodeName := range cached {
    		nodeInfo[nodeName] = &framework.NodeInfo{}
    	}
    
    	m, r := compare.CompareNodes(nodes, nodeInfo)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 08:00:25 UTC 2023
    - 4.8K 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/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)
  4. 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)
  5. 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)
  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. 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)
  8. pkg/scheduler/metrics/resources/resources.go

    				}
    				recordMetricWithUnit(ch, t.desc.total, p.Namespace, p.Name, p.Spec.NodeName, p.Spec.SchedulerName, priority, resourceName, unitName, val)
    			}
    		}
    	}
    }
    
    func recordMetricWithUnit(
    	ch chan<- metrics.Metric,
    	desc *metrics.Desc,
    	namespace, name, nodeName, schedulerName, priority string,
    	resourceName v1.ResourceName,
    	unit string,
    	val resource.Quantity,
    ) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 23:15:53 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. pkg/controller/nodeipam/ipam/sync/sync_test.go

    }
    
    func (f *fakeAPIs) UpdateNodeNetworkUnavailable(nodeName string, unavailable bool) error {
    	f.calls = append(f.calls, fmt.Sprintf("updateNodeNetworkUnavailable %v %v", nodeName, unavailable))
    	return f.updateNodeNetworkUnavailableErr
    }
    
    func (f *fakeAPIs) EmitNodeWarningEvent(nodeName, reason, fmtStr string, args ...interface{}) {
    	f.events = append(f.events, fakeEvent{nodeName, reason})
    }
    
    func (f *fakeAPIs) ReportResult(err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/runtime/instrumented_plugins.go

    }
    
    var _ framework.ScorePlugin = &instrumentedScorePlugin{}
    
    func (p *instrumentedScorePlugin) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status) {
    	p.metric.Inc()
    	return p.ScorePlugin.Score(ctx, state, pod, nodeName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top