validation

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateApplicationFailover added in v1.6.0

func ValidateApplicationFailover(applicationFailoverBehavior *policyv1alpha1.ApplicationFailoverBehavior, fldPath *field.Path) field.ErrorList

ValidateApplicationFailover validates that the application failover is correctly defined.

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 ValidateFailover added in v1.6.0

func ValidateFailover(failoverBehavior *policyv1alpha1.FailoverBehavior, fldPath *field.Path) field.ErrorList

ValidateFailover validates that the failoverBehavior is correctly defined.

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