Documentation ¶
Overview ¶
Package validator provides utils to validate cluster resource placement resource.
Index ¶
- Variables
- func IsPlacementPolicyTypeUpdated(oldPolicy, currentPolicy *placementv1beta1.PlacementPolicy) bool
- func IsTolerationsUpdatedOrDeleted(oldTolerations []placementv1beta1.Toleration, ...) bool
- func ValidateClusterResourcePlacement(clusterResourcePlacement *placementv1beta1.ClusterResourcePlacement) error
- func ValidateClusterResourcePlacementAlpha(clusterResourcePlacement *fleetv1alpha1.ClusterResourcePlacement) error
- func ValidateMemberCluster(mc clusterv1beta1.MemberCluster) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ResourceInformer informer.Manager
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 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.