Documentation ¶
Overview ¶
Package validator provides the validation functions for the k8 traffic manager object.
Index ¶
- func IsTrafficManagerBackendDeleted(ctx context.Context, k8sClient client.Client, name types.NamespacedName)
- func IsTrafficManagerBackendFinalizerAdded(ctx context.Context, k8sClient client.Client, name types.NamespacedName)
- func IsTrafficManagerProfileDeleted(ctx context.Context, k8sClient client.Client, name types.NamespacedName)
- func ValidateIfTrafficManagerProfileIsProgrammed(ctx context.Context, k8sClient client.Client, profileName types.NamespacedName) *fleetnetv1alpha1.TrafficManagerProfile
- func ValidateTrafficManagerBackend(ctx context.Context, k8sClient client.Client, ...)
- func ValidateTrafficManagerBackendConsistently(ctx context.Context, k8sClient client.Client, ...)
- func ValidateTrafficManagerBackendIfAcceptedAndIgnoringEndpointName(ctx context.Context, k8sClient client.Client, backendName types.NamespacedName, ...) fleetnetv1alpha1.TrafficManagerBackendStatus
- func ValidateTrafficManagerBackendStatusAndIgnoringEndpointNameConsistently(ctx context.Context, k8sClient client.Client, backendName types.NamespacedName, ...)
- func ValidateTrafficManagerConsistentlyExist(ctx context.Context, k8sClient client.Client, name types.NamespacedName)
- func ValidateTrafficManagerProfile(ctx context.Context, k8sClient client.Client, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTrafficManagerBackendDeleted ¶ added in v0.3.0
func IsTrafficManagerBackendDeleted(ctx context.Context, k8sClient client.Client, name types.NamespacedName)
IsTrafficManagerBackendDeleted validates whether the backend is deleted or not.
func IsTrafficManagerBackendFinalizerAdded ¶ added in v0.3.0
func IsTrafficManagerBackendFinalizerAdded(ctx context.Context, k8sClient client.Client, name types.NamespacedName)
IsTrafficManagerBackendFinalizerAdded validates whether the backend is created with the finalizer or not.
func IsTrafficManagerProfileDeleted ¶
func IsTrafficManagerProfileDeleted(ctx context.Context, k8sClient client.Client, name types.NamespacedName)
IsTrafficManagerProfileDeleted validates whether the profile is deleted or not.
func ValidateIfTrafficManagerProfileIsProgrammed ¶ added in v0.3.0
func ValidateIfTrafficManagerProfileIsProgrammed(ctx context.Context, k8sClient client.Client, profileName types.NamespacedName) *fleetnetv1alpha1.TrafficManagerProfile
ValidateIfTrafficManagerProfileIsProgrammed validates the trafficManagerProfile is programmed and returns the DNSName.
func ValidateTrafficManagerBackend ¶ added in v0.3.0
func ValidateTrafficManagerBackend(ctx context.Context, k8sClient client.Client, want *fleetnetv1alpha1.TrafficManagerBackend)
ValidateTrafficManagerBackend validates the trafficManagerBackend object.
func ValidateTrafficManagerBackendConsistently ¶ added in v0.3.0
func ValidateTrafficManagerBackendConsistently(ctx context.Context, k8sClient client.Client, want *fleetnetv1alpha1.TrafficManagerBackend)
ValidateTrafficManagerBackendConsistently validates the trafficManagerBackend object consistently.
func ValidateTrafficManagerBackendIfAcceptedAndIgnoringEndpointName ¶ added in v0.3.0
func ValidateTrafficManagerBackendIfAcceptedAndIgnoringEndpointName(ctx context.Context, k8sClient client.Client, backendName types.NamespacedName, isAccepted bool, wantEndpoints []fleetnetv1alpha1.TrafficManagerEndpointStatus) fleetnetv1alpha1.TrafficManagerBackendStatus
ValidateTrafficManagerBackendIfAcceptedAndIgnoringEndpointName validates the trafficManagerBackend object if it is accepted while ignoring the generated endpoint name.
func ValidateTrafficManagerBackendStatusAndIgnoringEndpointNameConsistently ¶ added in v0.3.0
func ValidateTrafficManagerBackendStatusAndIgnoringEndpointNameConsistently(ctx context.Context, k8sClient client.Client, backendName types.NamespacedName, want fleetnetv1alpha1.TrafficManagerBackendStatus)
ValidateTrafficManagerBackendStatusAndIgnoringEndpointNameConsistently validates the trafficManagerBackend status consistently while ignoring the generated endpoint name.
func ValidateTrafficManagerConsistentlyExist ¶ added in v0.3.0
func ValidateTrafficManagerConsistentlyExist(ctx context.Context, k8sClient client.Client, name types.NamespacedName)
ValidateTrafficManagerConsistentlyExist validates whether the backend consistently exists.
func ValidateTrafficManagerProfile ¶
func ValidateTrafficManagerProfile(ctx context.Context, k8sClient client.Client, want *fleetnetv1alpha1.TrafficManagerProfile)
ValidateTrafficManagerProfile validates the trafficManagerProfile object.
Types ¶
This section is empty.