Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for NodeAffinityArgs (0.31 sec)

  1. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity_test.go

    	testcases := map[string]struct {
    		args           *config.NodeAffinityArgs
    		pod            *v1.Pod
    		oldObj, newObj interface{}
    		expectedHint   framework.QueueingHint
    		expectedErr    bool
    	}{
    		"backoff-wrong-new-object": {
    			args:         &config.NodeAffinityArgs{},
    			pod:          podWithNodeAffinity.Obj(),
    			newObj:       "not-a-node",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 38.7K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/v1/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v1.NodeAffinityArgs)(nil), (*config.NodeAffinityArgs)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_NodeAffinityArgs_To_config_NodeAffinityArgs(a.(*v1.NodeAffinityArgs), b.(*config.NodeAffinityArgs), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 18:47:23 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  3. pkg/scheduler/apis/config/register.go

    		&KubeSchedulerConfiguration{},
    		&DefaultPreemptionArgs{},
    		&InterPodAffinityArgs{},
    		&NodeResourcesFitArgs{},
    		&PodTopologySpreadArgs{},
    		&VolumeBindingArgs{},
    		&NodeResourcesBalancedAllocationArgs{},
    		&NodeAffinityArgs{},
    	)
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 02 16:52:23 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/zz_generated.deepcopy.go

    func (in *NodeAffinityArgs) DeepCopy() *NodeAffinityArgs {
    	if in == nil {
    		return nil
    	}
    	out := new(NodeAffinityArgs)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    func (in *NodeAffinityArgs) DeepCopyObject() runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 22:02:57 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity.go

    			}
    		}
    	}
    	return pl, nil
    }
    
    func getArgs(obj runtime.Object) (config.NodeAffinityArgs, error) {
    	ptr, ok := obj.(*config.NodeAffinityArgs)
    	if !ok {
    		return config.NodeAffinityArgs{}, fmt.Errorf("args are not of type NodeAffinityArgs, got %T", obj)
    	}
    	return *ptr, validation.ValidateNodeAffinityArgs(nil, ptr)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/scheme/scheme_test.go

    						},
    						{
    							Name: "VolumeBinding",
    							Args: &config.VolumeBindingArgs{
    								BindTimeoutSeconds: 300,
    							},
    						},
    						{
    							Name: "NodeAffinity",
    							Args: &config.NodeAffinityArgs{
    								AddedAffinity: &corev1.NodeAffinity{
    									RequiredDuringSchedulingIgnoredDuringExecution: &corev1.NodeSelector{
    										NodeSelectorTerms: []corev1.NodeSelectorTerm{
    											{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  7. pkg/scheduler/apis/config/v1/defaults_test.go

    				},
    				HardPodAffinityWeight: ptr.To[int32](1),
    			}},
    	},
    	{
    		Name: "NodeAffinity",
    		Args: runtime.RawExtension{Object: &configv1.NodeAffinityArgs{
    			TypeMeta: metav1.TypeMeta{
    				Kind:       "NodeAffinityArgs",
    				APIVersion: "kubescheduler.config.k8s.io/v1",
    			},
    		}},
    	},
    	{
    		Name: "NodeResourcesBalancedAllocation",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. cmd/kube-scheduler/app/options/options_test.go

    									MinCandidateNodesPercentage: 10,
    									MinCandidateNodesAbsolute:   100,
    								},
    							},
    							{
    								Name: "NodeAffinity",
    								Args: &kubeschedulerconfig.NodeAffinityArgs{},
    							},
    							{
    								Name: "NodeResourcesBalancedAllocation",
    								Args: &kubeschedulerconfig.NodeResourcesBalancedAllocationArgs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/types_pluginargs.go

    	// +featureGate=VolumeCapacityPriority
    	// +optional
    	Shape []UtilizationShapePoint
    }
    
    // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    
    // NodeAffinityArgs holds arguments to configure the NodeAffinity plugin.
    type NodeAffinityArgs struct {
    	metav1.TypeMeta
    
    	// AddedAffinity is applied to all Pods additionally to the NodeAffinity
    	// specified in the PodSpec. That is, Nodes need to satisfy AddedAffinity
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 23:15:53 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. pkg/scheduler/apis/config/validation/validation_pluginargs.go

    		}
    	}
    	return allErrs.ToAggregate()
    }
    
    // ValidateNodeAffinityArgs validates that NodeAffinityArgs are correct.
    func ValidateNodeAffinityArgs(path *field.Path, args *config.NodeAffinityArgs) error {
    	if args.AddedAffinity == nil {
    		return nil
    	}
    	affinity := args.AddedAffinity
    	var errs []error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 09:29:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
Back to top