validator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package validator provides the validation functions for the k8 traffic manager object.

Index

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.

Jump to

Keyboard shortcuts

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