virtualippool

package
v0.0.0-...-e1524c0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr ctrl.Manager) error

Add create the new Reconciler

Types

type HLConfig

type HLConfig struct {
	ApiVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`

	Addresses   []VIPAddress `yaml:"addresses"`
	Healthcheck string       `yaml:"healthcheck,omitempty"`
}

func (*HLConfig) GetAddr

func (c *HLConfig) GetAddr(ip string) *VIPAddress

Get the currently configured Address for an IP

func (*HLConfig) Init

func (c *HLConfig) Init()

Init default fields

func (*HLConfig) Load

func (c *HLConfig) Load(content string) error

Load HLConfig from Yaml file and validate it

func (*HLConfig) ToYaml

func (c *HLConfig) ToYaml() (string, error)

Convert the HLConfig to Yaml string

func (*HLConfig) Validate

func (c *HLConfig) Validate() error

Validate that the config is good

type VIPAddress

type VIPAddress struct {
	IP   string `yaml:"ip"`
	Node string `yaml:"node,omitempty"`
	VrId int    `yaml:"vr_id"`
}

func (*VIPAddress) Validate

func (a *VIPAddress) Validate() error

Validate that the VIPAddress is good

type VirtualIPPoolReconciler

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

func (*VirtualIPPoolReconciler) Reconcile

func (r *VirtualIPPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

Jump to

Keyboard shortcuts

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