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

package validation

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

Index

Package Files

validation.go validation_pluginargs.go

func ValidateHardPodAffinityWeight Uses

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

ValidateHardPodAffinityWeight validates that weight is within allowed range.

func ValidateInterPodAffinityArgs Uses

func ValidateInterPodAffinityArgs(args config.InterPodAffinityArgs) error

ValidateInterPodAffinityArgs validates that InterPodAffinityArgs are correct.

func ValidateKubeSchedulerConfiguration Uses

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

ValidateKubeSchedulerConfiguration ensures validation of the KubeSchedulerConfiguration struct

func ValidateNodeLabelArgs Uses

func ValidateNodeLabelArgs(args config.NodeLabelArgs) error

ValidateNodeLabelArgs validates that NodeLabelArgs are correct.

func ValidateNodeResourcesLeastAllocatedArgs Uses

func ValidateNodeResourcesLeastAllocatedArgs(args *config.NodeResourcesLeastAllocatedArgs) error

ValidateNodeResourcesLeastAllocatedArgs validates that NodeResourcesLeastAllocatedArgs are correct.

func ValidateNodeResourcesMostAllocatedArgs Uses

func ValidateNodeResourcesMostAllocatedArgs(args *config.NodeResourcesMostAllocatedArgs) error

ValidateNodeResourcesMostAllocatedArgs validates that NodeResourcesMostAllocatedArgs are correct.

func ValidatePodTopologySpreadArgs Uses

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 Uses

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 Uses

func ValidateRequestedToCapacityRatioArgs(args config.RequestedToCapacityRatioArgs) error

ValidateRequestedToCapacityRatioArgs validates that RequestedToCapacityRatioArgs are correct.

Package validation imports 12 packages (graph) and is imported by 33 packages. Updated 2020-07-04. Refresh now. Tools for package owners.