fipcontroller

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(logger logrus.FieldLogger, hcc *hcloud.Client) *Controller

func (*Controller) AttachToNode

func (fc *Controller) AttachToNode(svcIPs stringset.StringSet, node string)

AttachToNode adds a FIP-to-node attachment to our worldview and immediately attempts to reconcile it with hcloud's

func (*Controller) ForgetAttachments added in v0.1.5

func (fc *Controller) ForgetAttachments(svcIPs stringset.StringSet)

ForgetAttachments remove the desired attachment from our worldview. This avoids "stealing" stale attachments from FIPs that might be known to us, but not currently in use by us. This does not trigger actual FIP dettachment.

func (*Controller) Reconcile

func (fc *Controller) Reconcile()

Reconcile starts an asynchronous attempt to make the managed floating IPs match the controller's worldview about which attachments should be current.

func (*Controller) Run

func (fc *Controller) Run()

Jump to

Keyboard shortcuts

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