package validation
import "k8s.io/kubernetes/pkg/scheduler/apis/config/validation"
Index ¶
- func ValidateDefaultPreemptionArgs(path *field.Path, args *config.DefaultPreemptionArgs) error
- func ValidateDynamicResourcesArgs(path *field.Path, args *config.DynamicResourcesArgs, fts feature.Features) error
- func ValidateInterPodAffinityArgs(path *field.Path, args *config.InterPodAffinityArgs) error
- func ValidateKubeSchedulerConfiguration(cc *config.KubeSchedulerConfiguration) utilerrors.Aggregate
- func ValidateNodeAffinityArgs(path *field.Path, args *config.NodeAffinityArgs) error
- func ValidateNodeResourcesBalancedAllocationArgs(path *field.Path, args *config.NodeResourcesBalancedAllocationArgs) error
- func ValidateNodeResourcesFitArgs(path *field.Path, args *config.NodeResourcesFitArgs) error
- func ValidatePodTopologySpreadArgs(path *field.Path, args *config.PodTopologySpreadArgs) error
- func ValidateVolumeBindingArgs(path *field.Path, args *config.VolumeBindingArgs) error
- func ValidateVolumeBindingArgsWithOptions(path *field.Path, args *config.VolumeBindingArgs, opts VolumeBindingArgsValidationOptions) error
- type VolumeBindingArgsValidationOptions
Functions ¶
func ValidateDefaultPreemptionArgs ¶
func ValidateDefaultPreemptionArgs(path *field.Path, args *config.DefaultPreemptionArgs) error
ValidateDefaultPreemptionArgs validates that DefaultPreemptionArgs are correct.
func ValidateDynamicResourcesArgs ¶
func ValidateDynamicResourcesArgs(path *field.Path, args *config.DynamicResourcesArgs, fts feature.Features) error
ValidateDynamicResourcesArgs validates that DynamicResourcesArgs are correct. In contrast to the REST API, setting fields that have no effect because the corresponding feature is disabled is considered an error.
func ValidateInterPodAffinityArgs ¶
func ValidateInterPodAffinityArgs(path *field.Path, args *config.InterPodAffinityArgs) error
ValidateInterPodAffinityArgs validates that InterPodAffinityArgs are correct.
func ValidateKubeSchedulerConfiguration ¶
func ValidateKubeSchedulerConfiguration(cc *config.KubeSchedulerConfiguration) utilerrors.Aggregate
ValidateKubeSchedulerConfiguration ensures validation of the KubeSchedulerConfiguration struct
func ValidateNodeAffinityArgs ¶
func ValidateNodeAffinityArgs(path *field.Path, args *config.NodeAffinityArgs) error
ValidateNodeAffinityArgs validates that NodeAffinityArgs are correct.
func ValidateNodeResourcesBalancedAllocationArgs ¶
func ValidateNodeResourcesBalancedAllocationArgs(path *field.Path, args *config.NodeResourcesBalancedAllocationArgs) error
ValidateNodeResourcesBalancedAllocationArgs validates that NodeResourcesBalancedAllocationArgs are set correctly.
func ValidateNodeResourcesFitArgs ¶
func ValidateNodeResourcesFitArgs(path *field.Path, args *config.NodeResourcesFitArgs) error
func ValidatePodTopologySpreadArgs ¶
func ValidatePodTopologySpreadArgs(path *field.Path, args *config.PodTopologySpreadArgs) error
ValidatePodTopologySpreadArgs validates that PodTopologySpreadArgs are correct. It replicates the validation from pkg/apis/core/validation.validateTopologySpreadConstraints with an additional check for .labelSelector to be nil.
func ValidateVolumeBindingArgs ¶
func ValidateVolumeBindingArgs(path *field.Path, args *config.VolumeBindingArgs) error
ValidateVolumeBindingArgs validates that VolumeBindingArgs are set correctly.
func ValidateVolumeBindingArgsWithOptions ¶
func ValidateVolumeBindingArgsWithOptions(path *field.Path, args *config.VolumeBindingArgs, opts VolumeBindingArgsValidationOptions) error
ValidateVolumeBindingArgsWithOptions validates that VolumeBindingArgs and VolumeBindingArgsValidationOptions with scheduler features.
Types ¶
type VolumeBindingArgsValidationOptions ¶
type VolumeBindingArgsValidationOptions struct { AllowStorageCapacityScoring bool }
VolumeBindingArgsValidationOptions contains the different settings for validation.
Source Files ¶
validation.go validation_pluginargs.go
- Version
- v1.35.0-alpha.0
- Published
- Aug 2, 2025
- Platform
- linux/amd64
- Imports
- 18 packages
- Last checked
- 2 minutes ago –
Tools for package owners.