lbmanager

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LBManager

type LBManager struct {
	client.Client
	// contains filtered or unexported fields
}

LBManager Responsible for the creation and deletion of externally accessible Services to access the Postgresql clusters managed by the Postgreslet.

func New

func New(client client.Client, opt Options) *LBManager

New Creates a new LBManager with the given configuration

func (*LBManager) CreateSvcLBIfNone

func (m *LBManager) CreateSvcLBIfNone(ctx context.Context, in *api.Postgres) error

CreateSvcLBIfNone Creates a new Service of type LoadBalancer for the given Postgres resource if neccessary

func (*LBManager) DeleteSvcLB

func (m *LBManager) DeleteSvcLB(ctx context.Context, in *api.Postgres) error

DeleteSvcLB Deletes the corresponding Service of type LoadBalancer of the given Postgres resource.

type Options added in v0.3.0

type Options struct {
	LBIP                        string
	PortRangeStart              int32
	PortRangeSize               int32
	EnableStandbyLeaderSelector bool
	EnableLegacyStandbySelector bool
	StandbyClustersSourceRanges []string
	EnableLBSourceRanges        bool
}

Jump to

Keyboard shortcuts

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