trafficmanagerprofile

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: 20 Imported by: 0

Documentation

Overview

Package trafficmanagerprofile features the TrafficManagerProfile controller to reconcile TrafficManagerProfile CRs.

Index

Constants

View Source
const (
	// DNSRelativeNameFormat consists of "Profile-Namespace" and "Profile-Name".
	DNSRelativeNameFormat = "%s-%s"
	// AzureResourceProfileNameFormat is the name format of the Azure Traffic Manager Profile created by the fleet controller.
	AzureResourceProfileNameFormat = "fleet-%s"

	// DefaultDNSTTL is in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses
	// provided by this Traffic Manager profile.
	// Defaults to 60 which is the same as the portal's default config.
	DefaultDNSTTL = int64(60)
)

Variables

This section is empty.

Functions

func EqualAzureTrafficManagerProfile added in v0.3.0

func EqualAzureTrafficManagerProfile(current, desired armtrafficmanager.Profile) bool

EqualAzureTrafficManagerProfile compares only few fields of the current and desired Azure Traffic Manager profiles by ignoring others. The desired profile is built by the controllers and all the required fields should not be nil.

func GenerateAzureTrafficManagerProfileName added in v0.3.0

func GenerateAzureTrafficManagerProfileName(profile *fleetnetv1alpha1.TrafficManagerProfile) string

GenerateAzureTrafficManagerProfileName generates the Azure Traffic Manager profile name based on the profile.

Types

type Reconciler

type Reconciler struct {
	client.Client

	ProfilesClient    *armtrafficmanager.ProfilesClient
	ResourceGroupName string // default resource group name to create azure traffic manager profiles
}

Reconciler reconciles a TrafficManagerProfile object.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile triggers a single reconcile round.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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