Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for VolumeNodeAffinity (0.5 sec)

  1. pkg/volume/util/util_test.go

    				},
    				Spec: v1.PersistentVolumeSpec{
    					NodeAffinity: &v1.VolumeNodeAffinity{},
    				},
    			},
    		},
    		{
    			name: "PV node affinity required zero selector terms",
    			pv: &v1.PersistentVolume{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: "foo",
    				},
    				Spec: v1.PersistentVolumeSpec{
    					NodeAffinity: &v1.VolumeNodeAffinity{
    						Required: &v1.NodeSelector{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. pkg/api/persistentvolume/util_test.go

    					Name: "foo",
    					Annotations: map[string]string{
    						api.BetaStorageClassAnnotation: "",
    					},
    				},
    				Spec: api.PersistentVolumeSpec{
    					NodeAffinity: &api.VolumeNodeAffinity{
    						Required: &api.NodeSelector{
    							NodeSelectorTerms: []api.NodeSelectorTerm{
    								{
    									MatchExpressions: []api.NodeSelectorRequirement{
    										{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. pkg/apis/core/v1/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v1.VolumeNodeAffinity)(nil), (*core.VolumeNodeAffinity)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_VolumeNodeAffinity_To_core_VolumeNodeAffinity(a.(*v1.VolumeNodeAffinity), b.(*core.VolumeNodeAffinity), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  4. pkg/apis/core/zz_generated.deepcopy.go

    func (in *VolumeNodeAffinity) DeepCopyInto(out *VolumeNodeAffinity) {
    	*out = *in
    	if in.Required != nil {
    		in, out := &in.Required, &out.Required
    		*out = new(NodeSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeNodeAffinity.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    func (in *VolumeNodeAffinity) DeepCopyInto(out *VolumeNodeAffinity) {
    	*out = *in
    	if in.Required != nil {
    		in, out := &in.Required, &out.Required
    		*out = new(NodeSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeNodeAffinity.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
  6. pkg/scheduler/testing/wrappers.go

    // and injects into the pv.
    func (p *PersistentVolumeWrapper) NodeAffinityIn(key string, vals []string) *PersistentVolumeWrapper {
    	if p.Spec.NodeAffinity == nil {
    		p.Spec.NodeAffinity = &v1.VolumeNodeAffinity{}
    	}
    	if p.Spec.NodeAffinity.Required == nil {
    		p.Spec.NodeAffinity.Required = &v1.NodeSelector{}
    	}
    	nodeSelector := MakeNodeSelector().In(key, vals).Obj()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    			},
    			StorageClassName: className,
    			VolumeMode:       &fs,
    		},
    		Status: v1.PersistentVolumeStatus{
    			Phase: v1.VolumeAvailable,
    		},
    	}
    	if node != "" {
    		pv.Spec.NodeAffinity = &v1.VolumeNodeAffinity{
    			Required: &v1.NodeSelector{
    				NodeSelectorTerms: []v1.NodeSelectorTerm{
    					{
    						MatchExpressions: []v1.NodeSelectorRequirement{
    							{
    								Key:      nodeLabelKey,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  8. pkg/apis/core/validation/validation_test.go

    		},
    		"volume-empty-node-affinity": {
    			isExpectedFailure: true,
    			volume:            testVolumeWithNodeAffinity(&core.VolumeNodeAffinity{}),
    		},
    		"volume-bad-node-affinity": {
    			isExpectedFailure: true,
    			volume: testVolumeWithNodeAffinity(
    				&core.VolumeNodeAffinity{
    					Required: &core.NodeSelector{
    						NodeSelectorTerms: []core.NodeSelectorTerm{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/generated.pb.go

    func (m *VolumeNodeAffinity) Reset()      { *m = VolumeNodeAffinity{} }
    func (*VolumeNodeAffinity) ProtoMessage() {}
    func (*VolumeNodeAffinity) Descriptor() ([]byte, []int) {
    	return fileDescriptor_6c07b07c062484ab, []int{220}
    }
    func (m *VolumeNodeAffinity) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.8M bytes
    - Viewed (0)
  10. pkg/apis/core/types.go

    	// +featureGate=VolumeAttributesClass
    	// +optional
    	VolumeAttributesClassName *string
    }
    
    // VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.
    type VolumeNodeAffinity struct {
    	// Required specifies hard node constraints that must be met.
    	Required *NodeSelector
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
Back to top