metallb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig(c *client.Client, conf *InstanceConfig) error

CreateConfig will create a config as configmap based on the struct InstanceConfig

Args:

  • Client struct from client module
  • InstanceConfig

Returns:

  • nil or error

func CreateSecret

func CreateSecret(c *client.Client, s *secret.Instance) error

CreateSecret will create a config as configmap based on the struct InstanceConfig

Args:

  • Client struct from client module
  • InstanceSecret struct

Returns:

  • nil or error

func Deploy

func Deploy(c *client.Client, version string) error

Deploy will download yaml files from metallb and deploy in the environment

Args:

  • Client struct from client module
  • version to deploy

Returns:

  • pointer v1.ConfigMapList or error

Types

type InstanceConfig

type InstanceConfig struct {
	Name                 string
	Namespace            string
	ConfigName           string
	AddressPoolName      string
	AddressPoolProtocol  string
	AddressPoolAddresses string
}

InstanceConfig type refers to the Metallb Config

Jump to

Keyboard shortcuts

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