publicipaddress

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "azurepublicipaddress-controller"
	ActuatorName   = "azurepublicipaddress-actuator"
	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},
			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

func AddToManager(mgr manager.Manager) error

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(
	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.

Jump to

Keyboard shortcuts

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