Documentation ¶
Index ¶
- Variables
- func CreateLBConfigMap(name, lbIntDNS, lbDNS string) (string, error)
- type Config
- func (*Config) Dependencies() []asset.Asset
- func (i *Config) Files() []*asset.File
- func (i *Config) Generate(_ context.Context, dependencies asset.Parents) error
- func (i *Config) Load(f asset.FileFetcher) (bool, error)
- func (*Config) Name() string
- func (i *Config) ParseDNSDataFromConfig(loadBalancerType LoadBalancerCategory) ([]string, []net.IP, error)
- type LoadBalancerCategory
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 ¶
CreateLBConfigMap creates a ConfigMap containing API and APi-Int LB configuration. Returns an error if marshalling to YAML fails.
Types ¶
type Config ¶
Config generates the lbConfigForDNS ConfigMap.
func GenerateLBConfigOverride ¶
GenerateLBConfigOverride generates an LBConfig an overrides the file data.
func (*Config) Dependencies ¶
Dependencies returns all the dependencies directly needed to generate the asset.
func (*Config) Load ¶
func (i *Config) Load(f asset.FileFetcher) (bool, error)
Load loads the already-rendered files back from disk.
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.
Click to show internal directories.
Click to hide internal directories.