Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for SelectedNode (0.17 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/binder.go

    			return false, nil
    		}
    
    		// Check if selectedNode annotation is still set
    		if pvc.Annotations == nil {
    			return false, fmt.Errorf("selectedNode annotation reset for PVC %q", pvc.Name)
    		}
    		selectedNode := pvc.Annotations[volume.AnnSelectedNode]
    		if selectedNode != pod.Spec.NodeName {
    			// If provisioner fails to provision a volume, selectedNode
    			// annotation will be removed to signal back to the scheduler to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/resource/v1alpha2/types.go

    type PodSchedulingContextSpec struct {
    	// SelectedNode is the node for which allocation of ResourceClaims that
    	// are referenced by the Pod and that use "WaitForFirstConsumer"
    	// allocation is to be attempted.
    	// +optional
    	SelectedNode string `json:"selectedNode,omitempty" protobuf:"bytes,1,opt,name=selectedNode"`
    
    	// PotentialNodes lists nodes where the Pod might be able to run.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 10:22:35 UTC 2024
    - 30K bytes
    - Viewed (0)
  3. pkg/controller/resourceclaim/controller.go

    		}
    		return nil
    	}
    
    	if scheduling.Spec.SelectedNode != pod.Spec.NodeName {
    		scheduling := scheduling.DeepCopy()
    		scheduling.Spec.SelectedNode = pod.Spec.NodeName
    		if _, err := ec.kubeClient.ResourceV1alpha2().PodSchedulingContexts(pod.Namespace).Update(ctx, scheduling, metav1.UpdateOptions{}); err != nil {
    			return fmt.Errorf("update spec.selectedNode in PodSchedulingContext: %v", err)
    		}
    	}
    
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  4. common-protos/k8s.io/api/resource/v1alpha2/generated.proto

    // PodSchedulingContextSpec describes where resources for the Pod are needed.
    message PodSchedulingContextSpec {
      // SelectedNode is the node for which allocation of ResourceClaims that
      // are referenced by the Pod and that use "WaitForFirstConsumer"
      // allocation is to be attempted.
      // +optional
      optional string selectedNode = 1;
    
      // PotentialNodes lists nodes where the Pod might be able to run.
      //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. pkg/apis/resource/validation/validation_podschedulingcontext_test.go

    				return schedulingCtx
    			},
    		},
    		"add-selected-node": {
    			oldScheduling: validScheduling,
    			update: func(schedulingCtx *resource.PodSchedulingContext) *resource.PodSchedulingContext {
    				schedulingCtx.Spec.SelectedNode = "worker1"
    				return schedulingCtx
    			},
    		},
    		"add-potential-nodes": {
    			oldScheduling: validScheduling,
    			update: func(schedulingCtx *resource.PodSchedulingContext) *resource.PodSchedulingContext {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:18:08 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/resource/v1alpha2/types_swagger_doc_generated.go

    	return map_PodSchedulingContextList
    }
    
    var map_PodSchedulingContextSpec = map[string]string{
    	"":               "PodSchedulingContextSpec describes where resources for the Pod are needed.",
    	"selectedNode":   "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/resource/v1alpha2/generated.proto

    // PodSchedulingContextSpec describes where resources for the Pod are needed.
    message PodSchedulingContextSpec {
      // SelectedNode is the node for which allocation of ResourceClaims that
      // are referenced by the Pod and that use "WaitForFirstConsumer"
      // allocation is to be attempted.
      // +optional
      optional string selectedNode = 1;
    
      // PotentialNodes lists nodes where the Pod might be able to run.
      //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 22:07:50 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  8. pkg/volume/portworx/portworx.go

    }
    
    type portworxVolumeProvisioner struct {
    	*portworxVolume
    	options volume.VolumeOptions
    }
    
    var _ volume.Provisioner = &portworxVolumeProvisioner{}
    
    func (c *portworxVolumeProvisioner) Provision(selectedNode *v1.Node, allowedTopologies []v1.TopologySelectorTerm) (*v1.PersistentVolume, error) {
    	if !util.ContainsAllAccessModes(c.plugin.GetAccessModes(), c.options.PVC.Spec.AccessModes) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. pkg/apis/resource/types.go

    }
    
    // PodSchedulingContextSpec describes where resources for the Pod are needed.
    type PodSchedulingContextSpec struct {
    	// SelectedNode is the node for which allocation of ResourceClaims that
    	// are referenced by the Pod and that use "WaitForFirstConsumer"
    	// allocation is to be attempted.
    	SelectedNode string
    
    	// PotentialNodes lists nodes where the Pod might be able to run.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. pkg/scheduler/testing/wrappers.go

    	if wrapper.Labels == nil {
    		wrapper.Labels = make(map[string]string)
    	}
    	wrapper.Labels[k] = v
    	return wrapper
    }
    
    // SelectedNode sets that field of the inner object.
    func (wrapper *PodSchedulingWrapper) SelectedNode(s string) *PodSchedulingWrapper {
    	wrapper.Spec.SelectedNode = s
    	return wrapper
    }
    
    // PotentialNodes sets that field of the inner object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
Back to top