baremetal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BareMetalInfra

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

func NewBareMetalInfra

func NewBareMetalInfra() *BareMetalInfra

func (*BareMetalInfra) GetSelectedInstances

func (bm *BareMetalInfra) GetSelectedInstances(rc *reconcilecontext.ReconcileContext) (map[string]interface{}, error)

GetSelectedInstances returns a map of nodename and corresponding instance info

func (*BareMetalInfra) GetUsedIPsByCIDR

func (bm *BareMetalInfra) GetUsedIPsByCIDR(rc *reconcilecontext.ReconcileContext) (map[string][]net.IP, error)

GetUsedIPsByCIDR returns a map of reserved IPs by CIDR, this IPs cannot be used for assigning to namespaces

func (*BareMetalInfra) ReconcileInstanceSecondaryIPs

func (bm *BareMetalInfra) ReconcileInstanceSecondaryIPs(rc *reconcilecontext.ReconcileContext) error

ReconcileInstanceSecondaryIPs will make sure that Assigned Egress IPs to instances are correclty reconciled this includes adding and possibly removing secondary IPs to selected instances.

func (*BareMetalInfra) RemoveAllAssignedIPs

func (bm *BareMetalInfra) RemoveAllAssignedIPs(rc *reconcilecontext.ReconcileContext) error

RemoveAllAssignedIPs uncoditionally remoevs all the assigned IPs to VMs, used in clean-up login

Jump to

Keyboard shortcuts

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