metallb

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Copyright 2024 Nutanix. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	DefaultHelmReleaseName      = "metallb"
	DefaultHelmReleaseNamespace = "metallb-system"
)

Variables

This section is empty.

Functions

func ConfigurationObjects added in v0.13.0

func ConfigurationObjects(input *ConfigurationInput) ([]*unstructured.Unstructured, error)

func GroupVersionKind added in v0.13.0

func GroupVersionKind(kind string) schema.GroupVersionKind

Types

type Config

type Config struct {
	*options.GlobalOptions
	// contains filtered or unexported fields
}

func (*Config) AddFlags

func (c *Config) AddFlags(prefix string, flags *pflag.FlagSet)

type ConfigurationInput added in v0.13.0

type ConfigurationInput struct {
	Name          string
	Namespace     string
	AddressRanges []v1alpha1.AddressRange
}

type MetalLB

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

func New

func New(
	c ctrlclient.Client,
	cfg *Config,
	helmChartInfoGetter *config.HelmChartGetter,
) *MetalLB

func (*MetalLB) Apply

func (n *MetalLB) Apply(
	ctx context.Context,
	slb v1alpha1.ServiceLoadBalancer,
	cluster *clusterv1.Cluster,
	log logr.Logger,
) error

Jump to

Keyboard shortcuts

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