validation

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const LabelValueMaxLength int = 63

LabelValueMaxLength is a label's max length

Variables

This section is empty.

Functions

func ValidateClusterAffinities added in v1.5.0

func ValidateClusterAffinities(affinities []policyv1alpha1.ClusterAffinityTerm, fldPath *field.Path) field.ErrorList

ValidateClusterAffinities validates clusterAffinities before creation or update.

func ValidateClusterAffinity added in v1.5.0

func ValidateClusterAffinity(affinity *policyv1alpha1.ClusterAffinity, fldPath *field.Path) field.ErrorList

ValidateClusterAffinity validates a clusterAffinity before creation or update.

func ValidateOverrideRules added in v1.5.0

func ValidateOverrideRules(overrideRules []policyv1alpha1.RuleWithCluster, fldPath *field.Path) field.ErrorList

ValidateOverrideRules validates the overrideRules of override policy.

func ValidateOverrideSpec added in v1.0.0

func ValidateOverrideSpec(overrideSpec *policyv1alpha1.OverrideSpec) field.ErrorList

ValidateOverrideSpec validates that the overrider specification is correctly defined.

func ValidatePlacement added in v1.5.0

func ValidatePlacement(placement policyv1alpha1.Placement, fldPath *field.Path) field.ErrorList

ValidatePlacement validates a placement before creation or update.

func ValidatePolicyFieldSelector added in v0.6.0

func ValidatePolicyFieldSelector(fieldSelector *policyv1alpha1.FieldSelector) error

ValidatePolicyFieldSelector tests if the fieldSelector of propagation policy or override policy is valid.

func ValidatePropagationSpec added in v1.5.0

func ValidatePropagationSpec(spec policyv1alpha1.PropagationSpec) field.ErrorList

ValidatePropagationSpec validates a PropagationSpec before creation or update.

func ValidateSpreadConstraint added in v1.5.0

func ValidateSpreadConstraint(spreadConstraints []policyv1alpha1.SpreadConstraint, fldPath *field.Path) field.ErrorList

ValidateSpreadConstraint tests if the constraints is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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