Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 728 for NodeName (0.22 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/controller/controller_utils.go

    func (s ByLogging) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
    
    func (s ByLogging) Less(i, j int) bool {
    	// 1. assigned < unassigned
    	if s[i].Spec.NodeName != s[j].Spec.NodeName && (len(s[i].Spec.NodeName) == 0 || len(s[j].Spec.NodeName) == 0) {
    		return len(s[i].Spec.NodeName) > 0
    	}
    	// 2. PodRunning < PodUnknown < PodPending
    	if s[i].Status.Phase != s[j].Status.Phase {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  8. pkg/controller/endpoint/endpoints_controller_test.go

    			if utilnet.IsIPv6String(epa.IP) != (tc.expectedEndpointFamily == ipv6) {
    				t.Fatalf("IP: expected %s, got: %s", tc.expectedEndpointFamily, epa.IP)
    			}
    			if *(epa.NodeName) != pod.Spec.NodeName {
    				t.Fatalf("NodeName: expected: %s, got: %s", pod.Spec.NodeName, *(epa.NodeName))
    			}
    			if epa.TargetRef.Kind != "Pod" {
    				t.Fatalf("TargetRef.Kind: expected: %s, got: %s", "Pod", epa.TargetRef.Kind)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  9. 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)
  10. cmd/kubelet/app/server.go

    func makeEventRecorder(ctx context.Context, kubeDeps *kubelet.Dependencies, nodeName types.NodeName) {
    	if kubeDeps.Recorder != nil {
    		return
    	}
    	eventBroadcaster := record.NewBroadcaster(record.WithContext(ctx))
    	kubeDeps.Recorder = eventBroadcaster.NewRecorder(legacyscheme.Scheme, v1.EventSource{Component: componentKubelet, Host: string(nodeName)})
    	eventBroadcaster.StartStructuredLogging(3)
    	if kubeDeps.EventClient != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
Back to top