azure

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AzureSystemNodeLabelPrefix = "kubernetes.azure.com"

AzureSystemNodeLabelPrefix is a standard node label prefix for Azure features, e.g., kubernetes.azure.com/scalesetpriority.

View Source
const (
	// ProviderIDPrefix will be appended to the beginning of Azure resource IDs to form the Kubernetes Provider ID.
	// NOTE: this format matches the 2 slashes format used in cloud-provider and cluster-autoscaler.
	ProviderIDPrefix = "azure://"
)

Variables

This section is empty.

Functions

func FindParentMachinePool added in v1.7.3

func FindParentMachinePool(ampName string, cli client.Client) (*expv1.MachinePool, error)

FindParentMachinePool finds the parent MachinePool for the AzureMachinePool.

func FindParentMachinePoolWithRetry added in v1.7.3

func FindParentMachinePoolWithRetry(ampName string, cli client.Client, maxAttempts int) (*expv1.MachinePool, error)

FindParentMachinePoolWithRetry finds the parent MachinePool for the AzureMachinePool with retry.

func GetAuthorizer added in v1.7.0

func GetAuthorizer(settings auth.EnvironmentSettings) (autorest.Authorizer, error)

GetAuthorizer returns an autorest.Authorizer-compatible object from MSAL.

func IsAzureSystemNodeLabelKey added in v1.6.0

func IsAzureSystemNodeLabelKey(labelKey string) bool

IsAzureSystemNodeLabelKey is a helper function that determines whether a node label key is an Azure "system" label.

func ParseResourceID added in v1.10.0

func ParseResourceID(id string) (*arm.ResourceID, error)

ParseResourceID parses a string to an *arm.ResourceID, first removing any "azure://" prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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