validation

package
v1.22.0-alpha.0...-9444b71 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDefaultPreemptionArgs

func ValidateDefaultPreemptionArgs(args config.DefaultPreemptionArgs) error

ValidateDefaultPreemptionArgs validates that DefaultPreemptionArgs are correct.

func ValidateHardPodAffinityWeight

func ValidateHardPodAffinityWeight(path *field.Path, w int32) error

ValidateHardPodAffinityWeight validates that weight is within allowed range.

func ValidateInterPodAffinityArgs

func ValidateInterPodAffinityArgs(args config.InterPodAffinityArgs) error

ValidateInterPodAffinityArgs validates that InterPodAffinityArgs are correct.

func ValidateKubeSchedulerConfiguration

func ValidateKubeSchedulerConfiguration(cc *config.KubeSchedulerConfiguration) field.ErrorList

ValidateKubeSchedulerConfiguration ensures validation of the KubeSchedulerConfiguration struct

func ValidateNodeAffinityArgs

func ValidateNodeAffinityArgs(args *config.NodeAffinityArgs) error

ValidateNodeAffinityArgs validates that NodeAffinityArgs are correct.

func ValidateNodeLabelArgs

func ValidateNodeLabelArgs(args config.NodeLabelArgs) error

ValidateNodeLabelArgs validates that NodeLabelArgs are correct.

func ValidateNodeResourcesLeastAllocatedArgs

func ValidateNodeResourcesLeastAllocatedArgs(args *config.NodeResourcesLeastAllocatedArgs) error

ValidateNodeResourcesLeastAllocatedArgs validates that NodeResourcesLeastAllocatedArgs are correct.

func ValidateNodeResourcesMostAllocatedArgs

func ValidateNodeResourcesMostAllocatedArgs(args *config.NodeResourcesMostAllocatedArgs) error

ValidateNodeResourcesMostAllocatedArgs validates that NodeResourcesMostAllocatedArgs are correct.

func ValidatePodTopologySpreadArgs

func ValidatePodTopologySpreadArgs(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(args config.RequestedToCapacityRatioArgs) error

ValidateRequestedToCapacityRatioArgs validates that RequestedToCapacityRatioArgs are correct.

func ValidateVolumeBindingArgs

func ValidateVolumeBindingArgs(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