validator

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package validator provides utils to validate ClusterResourceOverride resources.

Package validator provides utils to validate cluster resource placement resource.

Package validator provides utils to validate ResourceOverride resources.

Index

Constants

This section is empty.

Variables

View Source
var ResourceInformer informer.Manager
View Source
var RestMapper meta.RESTMapper

Functions

func IsPlacementPolicyTypeUpdated added in v0.8.1

func IsPlacementPolicyTypeUpdated(oldPolicy, currentPolicy *placementv1beta1.PlacementPolicy) bool

func IsTolerationsUpdatedOrDeleted added in v0.9.1

func IsTolerationsUpdatedOrDeleted(oldTolerations []placementv1beta1.Toleration, newTolerations []placementv1beta1.Toleration) bool

func ValidateClusterResourceOverride added in v0.9.5

func ValidateClusterResourceOverride(cro fleetv1alpha1.ClusterResourceOverride, croList *fleetv1alpha1.ClusterResourceOverrideList) error

ValidateClusterResourceOverride validates cluster resource override fields and returns error.

func ValidateClusterResourcePlacement

func ValidateClusterResourcePlacement(clusterResourcePlacement *placementv1beta1.ClusterResourcePlacement) error

ValidateClusterResourcePlacement validates a ClusterResourcePlacement object.

func ValidateClusterResourcePlacementAlpha added in v0.6.8

func ValidateClusterResourcePlacementAlpha(clusterResourcePlacement *fleetv1alpha1.ClusterResourcePlacement) error

ValidateClusterResourcePlacementAlpha validates a ClusterResourcePlacement v1alpha1 object.

func ValidateMemberCluster added in v0.9.2

func ValidateMemberCluster(mc clusterv1beta1.MemberCluster) error

ValidateMemberCluster validates member cluster fields and returns error.

func ValidateResourceOverride added in v0.9.5

func ValidateResourceOverride(ro fleetv1alpha1.ResourceOverride, roList *fleetv1alpha1.ResourceOverrideList) error

ValidateResourceOverride validates resource override fields and returns error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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