Help us shape the future of Go! Take the 2026 Go Developer Survey

metallb

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 24 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// AddonName indicates the unique name of this addon.
	AddonName clusters.AddonName = "metallb"

	// DefaultNamespace indicates the default namespace this addon will be deployed to.
	DefaultNamespace = "metallb-system"
)

Variables

This section is empty.

Functions

func New

func New() clusters.Addon

Types

type Addon added in v0.40.0

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

func (*Addon) Delete added in v0.40.0

func (a *Addon) Delete(ctx context.Context, cluster clusters.Cluster) error

func (*Addon) Dependencies added in v0.40.0

func (a *Addon) Dependencies(_ context.Context, _ clusters.Cluster) []clusters.AddonName

func (*Addon) Deploy added in v0.40.0

func (a *Addon) Deploy(ctx context.Context, cluster clusters.Cluster) error

func (*Addon) DumpDiagnostics added in v0.40.0

func (a *Addon) DumpDiagnostics(context.Context, clusters.Cluster) (map[string][]byte, error)

func (*Addon) Name added in v0.40.0

func (a *Addon) Name() clusters.AddonName

func (*Addon) Ready added in v0.40.0

func (a *Addon) Ready(ctx context.Context, cluster clusters.Cluster) ([]runtime.Object, bool, error)

type Builder added in v0.40.0

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

Builder is a configuration tool for metallb cluster.Addons.

func NewBuilder added in v0.40.0

func NewBuilder() *Builder

NewBuilder provides a new Builder object with default addon settings.

func (*Builder) Build added in v0.40.0

func (b *Builder) Build() *Addon

Build generates an addon with the builder's configuration.

func (*Builder) WithIPAddressPoolDisabled added in v0.40.0

func (b *Builder) WithIPAddressPoolDisabled() *Builder

WithIPAddressPoolDisabled instructs the builder to create addons with pool creation disabled.

Jump to

Keyboard shortcuts

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