validation

package
v0.0.0-...-dcfb068 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 ValidateLoadAwareArgs

func ValidateLoadAwareArgs(args *config.LoadAwareArgs) error

func ValidateLocalStoragePoolCheckerArgs

func ValidateLocalStoragePoolCheckerArgs(args *config.LocalStoragePoolCheckerArgs) error

func ValidateNodeLabelArgs

func ValidateNodeLabelArgs(args config.NodeLabelArgs) error

ValidateNodeLabelArgs validates that NodeLabelArgs are correct.

func ValidateNodeResourcesAffinityArgs

func ValidateNodeResourcesAffinityArgs(args *config.NodeResourcesAffinityArgs) error

ValidateNodeResourcesAffinityArgs validates that NodeResourcesLeastAllocatedArgs are correct.

func ValidateNodeResourcesBalancedAllocatedArgs

func ValidateNodeResourcesBalancedAllocatedArgs(args *config.NodeResourcesBalancedAllocatedArgs) error

ValidateNodeResourcesBalancedAllocatedArgs validates that NodeResourcesMostAllocatedArgs 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 ValidateRequestedToCapacityRatioArgs

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