azureclients

package
v0.0.0-...-ed46050 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoadBalancerClient

func NewLoadBalancerClient(config *auth.AzureAuthConfig, env *azure.Environment) (loadbalancerclient.Interface, error)

NewLoadBalancerClient creates a new LoadBalancer client.

func NewPublicIPClient

func NewPublicIPClient(config *auth.AzureAuthConfig, env *azure.Environment) (publicipclient.Interface, error)

NewPublicIPClient creates a new PublicIP client.

Types

type AzureConfig

type AzureConfig struct {
	auth.AzureAuthConfig

	GlobalVIPLocation               string `json:"globalVIPLocation,omitempty" yaml:"globalVIPLocation,omitempty"`
	GlobalLoadBalancerName          string `json:"globalLoadBalancerName,omitempty" yaml:"globalLoadBalancerName,omitempty"`
	GlobalLoadBalancerResourceGroup string `json:"globalLoadBalancerResourceGroup,omitempty" yaml:"globalLoadBalancerResourceGroup,omitempty"`
}

AzureConfig defines the Azure config options.

func GetAzureConfigFromSecret

func GetAzureConfigFromSecret(kubeClient client.Client, namespace, name string) (*AzureConfig, *azure.Environment, error)

GetAzureConfigFromSecret fetches Azure cloud config from given secret.

Jump to

Keyboard shortcuts

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