Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ControllerName is the name of the Azure publicipaddress controller. ControllerName = "azurepublicipaddress-controller" // ActuatorName is the name of the Azure publicipaddress actuator. ActuatorName = "azurepublicipaddress-actuator" // FinalizerName is the finalizer to put on publicipaddress resources. FinalizerName = "azure.remedy.gardener.cloud/publicipaddress" )
View Source
const (
// ServiceTag is a tag on an Azure public IP address that identifies the Kubernetes service it belongs to.
ServiceTag = "service"
)
Variables ¶
View Source
var ( // DefaultAddOptions are the default AddOptions for AddToManager. DefaultAddOptions = AddOptions{ Config: config.AzureOrphanedPublicIPRemedyConfiguration{ RequeueInterval: metav1.Duration{Duration: 1 * time.Minute}, SyncPeriod: metav1.Duration{Duration: 10 * time.Hour}, DeletionGracePeriod: metav1.Duration{Duration: 5 * time.Minute}, MaxGetAttempts: 5, MaxCleanAttempts: 5, }, } // CleanedIPsCounter is a global counter for cleaned Azure public IP addresses. CleanedIPsCounter = prometheus.NewCounter( prometheus.CounterOpts{ Name: "cleaned_azure_public_ips_total", Help: "Number of cleaned Azure public IPs", }, ) )
Functions ¶
func AddToManager ¶
AddToManager adds a controller with the default AddOptions to the given manager.
func AddToManagerWithOptions ¶
func AddToManagerWithOptions(mgr manager.Manager, options AddOptions) error
AddToManagerWithOptions adds a controller with the given AddOptions to the given manager.
func NewActuator ¶
func NewActuator( client client.Client, pubipUtils azure.PublicIPAddressUtils, config config.AzureOrphanedPublicIPRemedyConfiguration, timestamper utils.Timestamper, logger logr.Logger, cleanedIPsCounter prometheus.Counter, ) controller.Actuator
NewActuator creates a new Actuator.
Types ¶
type AddOptions ¶
type AddOptions struct { // Controller are the controller.Options. Controller controller.Options // InfraConfigPath is the path to the infrastructure configuration file. InfraConfigPath string // Config is the configuration for the Azure orphaned public IP remedy. Config config.AzureOrphanedPublicIPRemedyConfiguration }
AddOptions are options to apply when adding a controller to a manager.
Click to show internal directories.
Click to hide internal directories.