kubernetesk8s.io/kubernetes/pkg/scheduler/apis/config/validation Index | Files

package validation

import "k8s.io/kubernetes/pkg/scheduler/apis/config/validation"

Index

Functions

func ValidateDefaultPreemptionArgs

func ValidateDefaultPreemptionArgs(path *field.Path, args *config.DefaultPreemptionArgs) error

ValidateDefaultPreemptionArgs validates that DefaultPreemptionArgs are correct.

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 ValidateNodeLabelArgs

func ValidateNodeLabelArgs(path *field.Path, args *config.NodeLabelArgs) error

ValidateNodeLabelArgs validates that NodeLabelArgs 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 ValidateNodeResourcesLeastAllocatedArgs

func ValidateNodeResourcesLeastAllocatedArgs(path *field.Path, args *config.NodeResourcesLeastAllocatedArgs) error

ValidateNodeResourcesLeastAllocatedArgs validates that NodeResourcesLeastAllocatedArgs are correct.

func ValidateNodeResourcesMostAllocatedArgs

func ValidateNodeResourcesMostAllocatedArgs(path *field.Path, args *config.NodeResourcesMostAllocatedArgs) error

ValidateNodeResourcesMostAllocatedArgs validates that NodeResourcesMostAllocatedArgs are correct.

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 ValidatePolicy

func ValidatePolicy(policy config.Policy) error

ValidatePolicy checks for errors in the Config It does not return early so that it can find as many errors as possible

func ValidateRequestedToCapacityRatioArgs

func ValidateRequestedToCapacityRatioArgs(path *field.Path, args *config.RequestedToCapacityRatioArgs) error

ValidateRequestedToCapacityRatioArgs validates that RequestedToCapacityRatioArgs are correct.

func ValidateVolumeBindingArgs

func ValidateVolumeBindingArgs(path *field.Path, args *config.VolumeBindingArgs) error

ValidateVolumeBindingArgs validates that VolumeBindingArgs are set correctly.

Source Files

validation.go validation_pluginargs.go

Version
v1.22.4
Published
Nov 17, 2021
Platform
js/wasm
Imports
19 packages
Last checked
46 seconds ago

Tools for package owners.