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) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.