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 ¶
- Variables
- func IsPlacementPolicyTypeUpdated(oldPolicy, currentPolicy *placementv1beta1.PlacementPolicy) bool
- func IsTolerationsUpdatedOrDeleted(oldTolerations []placementv1beta1.Toleration, ...) bool
- func ValidateClusterResourceOverride(cro fleetv1alpha1.ClusterResourceOverride, ...) error
- func ValidateClusterResourcePlacement(clusterResourcePlacement *placementv1beta1.ClusterResourcePlacement) error
- func ValidateClusterResourcePlacementAlpha(clusterResourcePlacement *fleetv1alpha1.ClusterResourcePlacement) error
- func ValidateMemberCluster(mc clusterv1beta1.MemberCluster) error
- func ValidateResourceOverride(ro fleetv1alpha1.ResourceOverride, roList *fleetv1alpha1.ResourceOverrideList) error
Constants ¶
This section is empty.
Variables ¶
var ResourceInformer informer.Manager
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.