Documentation ¶
Index ¶
- Constants
- func ValidateApplicationFailover(applicationFailoverBehavior *policyv1alpha1.ApplicationFailoverBehavior, ...) field.ErrorList
- func ValidateClusterAffinities(affinities []policyv1alpha1.ClusterAffinityTerm, fldPath *field.Path) field.ErrorList
- func ValidateClusterAffinity(affinity *policyv1alpha1.ClusterAffinity, fldPath *field.Path) field.ErrorList
- func ValidateFailover(failoverBehavior *policyv1alpha1.FailoverBehavior, fldPath *field.Path) field.ErrorList
- func ValidateOverrideRules(overrideRules []policyv1alpha1.RuleWithCluster, fldPath *field.Path) field.ErrorList
- func ValidateOverrideSpec(overrideSpec *policyv1alpha1.OverrideSpec) field.ErrorList
- func ValidatePlacement(placement policyv1alpha1.Placement, fldPath *field.Path) field.ErrorList
- func ValidatePolicyFieldSelector(fieldSelector *policyv1alpha1.FieldSelector) error
- func ValidatePropagationSpec(spec policyv1alpha1.PropagationSpec) field.ErrorList
- func ValidateSpreadConstraint(spreadConstraints []policyv1alpha1.SpreadConstraint, fldPath *field.Path) field.ErrorList
Constants ¶
const LabelValueMaxLength int = 63
LabelValueMaxLength is a label's max length
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
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.