azure

package
v2.2.0-pre Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackendAddressPoolWorkerName       = "backendAddressWorkerPool"
	BackendAddressPoolControlPlaneName = "backendAddressControlPlanePool"
)

Variables

This section is empty.

Functions

func AutoscalingNodeGroup

func AutoscalingNodeGroup(scaleSet string, min int, max int) string

AutoscalingNodeGroup converts an azure scale set into a node group used by the k8s cluster-autoscaler.

func GeneratePassword

func GeneratePassword() (string, error)

GeneratePassword is a helper function to generate a random password for Azure's scale set.

Types

type LoadBalancer

type LoadBalancer struct {
	Name          string
	Subscription  string
	ResourceGroup string
	Location      string
	PublicIPID    string
	UID           string
}

LoadBalancer defines a Azure load balancer.

func (*LoadBalancer) AppendDebugRules

func (l *LoadBalancer) AppendDebugRules(armLoadBalancer armnetwork.LoadBalancer) armnetwork.LoadBalancer

func (LoadBalancer) Azure

Azure returns a Azure representation of LoadBalancer.

type ScaleSet

type ScaleSet struct {
	Name                           string
	NamePrefix                     string
	UID                            string
	Subscription                   string
	ResourceGroup                  string
	Location                       string
	InstanceType                   string
	StateDiskSizeGB                int32
	StateDiskType                  string
	Count                          int64
	Username                       string
	SubnetID                       string
	NetworkSecurityGroup           string
	Password                       string
	Image                          string
	UserAssignedIdentity           string
	LoadBalancerName               string
	LoadBalancerBackendAddressPool string
	ConfidentialVM                 bool
}

ScaleSet defines a Azure scale set.

func (ScaleSet) Azure

Azure returns the Azure representation of ScaleSet.

Directories

Path Synopsis
internal
poller
Package poller implements a poller that can be used to wait for a condition to be met.
Package poller implements a poller that can be used to wait for a condition to be met.

Jump to

Keyboard shortcuts

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