validation

package
v1.22.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 19 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDefaultPreemptionArgs added in v1.20.0

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

ValidateDefaultPreemptionArgs validates that DefaultPreemptionArgs are correct.

func ValidateInterPodAffinityArgs added in v1.19.0

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 added in v1.20.0

func ValidateNodeAffinityArgs(path *field.Path, args *config.NodeAffinityArgs) error

ValidateNodeAffinityArgs validates that NodeAffinityArgs are correct.

func ValidateNodeLabelArgs added in v1.19.0

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

ValidateNodeLabelArgs validates that NodeLabelArgs are correct.

func ValidateNodeResourcesBalancedAllocationArgs added in v1.22.0

func ValidateNodeResourcesBalancedAllocationArgs(path *field.Path, args *config.NodeResourcesBalancedAllocationArgs) error

ValidateNodeResourcesBalancedAllocationArgs validates that NodeResourcesBalancedAllocationArgs are set correctly.

func ValidateNodeResourcesFitArgs added in v1.22.0

func ValidateNodeResourcesFitArgs(path *field.Path, args *config.NodeResourcesFitArgs) error

func ValidateNodeResourcesLeastAllocatedArgs added in v1.19.0

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

ValidateNodeResourcesLeastAllocatedArgs validates that NodeResourcesLeastAllocatedArgs are correct.

func ValidateNodeResourcesMostAllocatedArgs added in v1.19.0

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

ValidateNodeResourcesMostAllocatedArgs validates that NodeResourcesMostAllocatedArgs are correct.

func ValidatePodTopologySpreadArgs added in v1.19.0

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 added in v1.17.0

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 added in v1.19.0

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

ValidateRequestedToCapacityRatioArgs validates that RequestedToCapacityRatioArgs are correct.

func ValidateVolumeBindingArgs added in v1.21.0

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

ValidateVolumeBindingArgs validates that VolumeBindingArgs are set correctly.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL