configuration

package
v1.5.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CloudProviderName = "anexia"
)

Variables

View Source
var (
	CloudProviderScheme = fmt.Sprintf("%s://", CloudProviderName)
)

Functions

func GetManagerOptions

func GetManagerOptions() (*options.CloudControllerManagerOptions, error)

Types

type ProviderConfig

type ProviderConfig struct {
	Token                  string `yaml:"anexiaToken" split_words:"true"`
	CustomerID             string `yaml:"customerID,omitempty" split_words:"true"`
	ClusterName            string `yaml:"clusterName,omitempty" split_words:"true"`
	AutoDiscoveryTagPrefix string `yaml:"autoDiscoveryTagPrefix,omitempty" split_words:"true" default:"anxkube-ccm-lb"`

	// if ccm shall discover $LoadBalancerIdentifier, $SecondaryLoadBalancerIdentifiers and $LoadBalancerPrefixIdentifiers via tag "$AutoDiscoveryTagPrefix-$ClusterName"
	AutoDiscoverLoadBalancer bool `yaml:"autoDiscoverLoadBalancer,omitempty" split_words:"true"`

	// the LBaaS LoadBalancer resource to configure for LoadBalancer Services
	LoadBalancerIdentifier string `yaml:"loadBalancerIdentifier,omitempty" split_words:"true"`

	// identifiers of LBaaS LoadBalancer resources to keep in sync with $LoadBalancerIdentifier
	SecondaryLoadBalancerIdentifiers []string `yaml:"secondaryLoadBalancersIdentifiers" split_words:"true"`

	// lists the identifiers of prefixes from which external IPs for LoadBalancer Services can be allocated
	LoadBalancerPrefixIdentifiers []string `yaml:"loadBalancerPrefixIdentifiers,omitempty" split_words:"true"`

	// defines the number of retries to wait for LoadBalancer resources to be ready
	LoadBalancerBackoffSteps int `yaml:"loadBalancerBackoffSteps" default:"30"`
}

func NewProviderConfig

func NewProviderConfig(configReader io.Reader) (ProviderConfig, error)

Jump to

Keyboard shortcuts

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