Documentation ¶
Index ¶
- Constants
- func FindParentMachinePool(ampName string, cli client.Client) (*expv1.MachinePool, error)
- func FindParentMachinePoolWithRetry(ampName string, cli client.Client, maxAttempts int) (*expv1.MachinePool, error)
- func IsAzureSystemNodeLabelKey(labelKey string) bool
- func ParseResourceID(id string) (*arm.ResourceID, error)
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
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 IsAzureSystemNodeLabelKey ¶ added in v1.6.0
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.
Click to show internal directories.
Click to hide internal directories.