lbmanager

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 8 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 {
	// 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) CreateOrUpdateDedicatedSvcLB added in v0.12.0

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

CreateOrUpdateDedicatedSvcLB Creates or updates a Service of type LoadBalancer with a dedicated ip for the given Postgres resource if necessary

func (*LBManager) CreateOrUpdateSharedSvcLB added in v0.12.0

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

CreateOrUpdateSharedSvcLB Creates or updates a Service of type LoadBalancer with a shared ip for the given Postgres resource if necessary

func (*LBManager) DeleteDedicatedSvcLB added in v0.12.0

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

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

func (*LBManager) DeleteSharedSvcLB added in v0.12.0

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

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

func (*LBManager) ReconcileSvcLBs added in v0.12.0

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

ReconcileSvcLBs Creates or updates the LoadBalancer(s) for 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
	EnableForceSharedIP         bool
}

Jump to

Keyboard shortcuts

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