Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for withNodeAffinity (0.2 sec)

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

    			},
    			pvs: []*v1.PersistentVolume{
    				makePV("pv-a", waitSC.Name).withPhase(v1.VolumeBound).withNodeAffinity(map[string][]string{
    					v1.LabelHostname: {"node-a"},
    				}).PersistentVolume,
    				makePV("pv-b", waitSC.Name).withPhase(v1.VolumeBound).withNodeAffinity(map[string][]string{
    					v1.LabelHostname: {"node-a"},
    				}).PersistentVolume,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/core/v1/affinity.go

    	return &AffinityApplyConfiguration{}
    }
    
    // WithNodeAffinity sets the NodeAffinity field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the NodeAffinity field is set to the value of the last call.
    func (b *AffinityApplyConfiguration) WithNodeAffinity(value *NodeAffinityApplyConfiguration) *AffinityApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/volumebinding/test_utils.go

    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		Spec: v1.PersistentVolumeSpec{
    			StorageClassName: className,
    		},
    	}}
    }
    
    func (pvb pvBuilder) withNodeAffinity(keyValues map[string][]string) pvBuilder {
    	matchExpressions := make([]v1.NodeSelectorRequirement, 0)
    	for key, values := range keyValues {
    		matchExpressions = append(matchExpressions, v1.NodeSelectorRequirement{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/client-go/applyconfigurations/core/v1/persistentvolumespec.go

    	b.VolumeMode = &value
    	return b
    }
    
    // WithNodeAffinity sets the NodeAffinity field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the NodeAffinity field is set to the value of the last call.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 16.6K bytes
    - Viewed (0)
Back to top