- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ValidateNodeAffinityArgs (0.22 sec)
-
pkg/scheduler/apis/config/validation/validation_pluginargs.go
allErrs = append(allErrs, field.Invalid(path.Child("resources").Index(i).Child("weight"), resource.Weight, "must be 1")) } } 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) -
pkg/scheduler/apis/config/validation/validation.go
m := map[string]interface{}{ "DefaultPreemption": ValidateDefaultPreemptionArgs, "InterPodAffinity": ValidateInterPodAffinityArgs, "NodeAffinity": ValidateNodeAffinityArgs, "NodeResourcesBalancedAllocation": ValidateNodeResourcesBalancedAllocationArgs, "NodeResourcesFitArgs": ValidateNodeResourcesFitArgs, "PodTopologySpread": ValidatePodTopologySpreadArgs,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 06:27:01 UTC 2024 - 11.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodeaffinity/node_affinity.go
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) } func getPodPreferredNodeAffinity(pod *v1.Pod) (*nodeaffinity.PreferredSchedulingTerms, error) { affinity := pod.Spec.Affinity
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 12:00:10 UTC 2023 - 12.6K bytes - Viewed (0) -
pkg/scheduler/apis/config/validation/validation_pluginargs_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.3K bytes - Viewed (0)