lbconfig

package
v0.90.99 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfigName is the name of the load balancer config file.
	ConfigName = "openshift-lb-config.yaml"

	// ConfigPath is the path to the load balancer config file.
	ConfigPath = filepath.Join("openshift", ConfigName)

	// PublicLoadBalancer indicates that the data is related to public load balancers.
	PublicLoadBalancer LoadBalancerCategory = "external-api-lb-ips"

	// PrivateLoadBalancer indicates that the data is related to private load balancers.
	PrivateLoadBalancer LoadBalancerCategory = "internal-api-lb-ips"
)

Functions

func CreateLBConfigMap

func CreateLBConfigMap(name, lbIntDNS, lbDNS string) (string, error)

CreateLBConfigMap creates a ConfigMap containing API and APi-Int LB configuration. Returns an error if marshalling to YAML fails.

Types

type Config

type Config struct {
	File *asset.File
}

Config generates the lbConfigForDNS ConfigMap.

func GenerateLBConfigOverride

func GenerateLBConfigOverride(lbIntDNS, lbDNS string) (*Config, error)

GenerateLBConfigOverride generates an LBConfig an overrides the file data.

func (*Config) Dependencies

func (*Config) Dependencies() []asset.Asset

Dependencies returns all the dependencies directly needed to generate the asset.

func (*Config) Files

func (i *Config) Files() []*asset.File

Files returns the files generated by the asset.

func (*Config) Generate

func (i *Config) Generate(dependencies asset.Parents) error

Generate generates the openshift-install ConfigMap.

func (*Config) Load

func (i *Config) Load(f asset.FileFetcher) (bool, error)

Load loads the already-rendered files back from disk.

func (*Config) Name

func (*Config) Name() string

Name returns a human friendly name for the asset.

func (*Config) ParseDNSDataFromConfig

func (i *Config) ParseDNSDataFromConfig(loadBalancerType LoadBalancerCategory) ([]string, []net.IP, error)

ParseDNSDataFromConfig parses the ip addresses and DNS names from the config map.

type LoadBalancerCategory

type LoadBalancerCategory string

LoadBalancerCategory describes the type of load balancer data.

Jump to

Keyboard shortcuts

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