validation

package
v1.19.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 12 Imported by: 48

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateHardPodAffinityWeight added in v1.19.0

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

ValidateHardPodAffinityWeight validates that weight is within allowed range.

func ValidateInterPodAffinityArgs added in v1.19.0

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

func ValidateNodeLabelArgs(args config.NodeLabelArgs) error

ValidateNodeLabelArgs validates that NodeLabelArgs are correct.

func ValidateNodeResourcesLeastAllocatedArgs added in v1.19.0

func ValidateNodeResourcesLeastAllocatedArgs(args *config.NodeResourcesLeastAllocatedArgs) error

ValidateNodeResourcesLeastAllocatedArgs validates that NodeResourcesLeastAllocatedArgs are correct.

func ValidateNodeResourcesMostAllocatedArgs added in v1.19.0

func ValidateNodeResourcesMostAllocatedArgs(args *config.NodeResourcesMostAllocatedArgs) error

ValidateNodeResourcesMostAllocatedArgs validates that NodeResourcesMostAllocatedArgs are correct.

func ValidatePodTopologySpreadArgs added in v1.19.0

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

ValidateRequestedToCapacityRatioArgs validates that RequestedToCapacityRatioArgs are correct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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