Documentation
¶
Index ¶
- func GetAKSNodeClass(ctx context.Context, kubeClient client.Client, nodeClaim *karpv1.NodeClaim) (*v1beta1.AKSNodeClass, error)
- func GetVM(ctx context.Context, vmInstanceProvider instance.VMProvider, ...) (*armcompute.VirtualMachine, error)
- func GetVMName(providerID string) (string, error)
- func UsingAKSNodeClassPredicate() predicate.Funcs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAKSNodeClass ¶
func GetAKSNodeClass(ctx context.Context, kubeClient client.Client, nodeClaim *karpv1.NodeClaim) (*v1beta1.AKSNodeClass, error)
GetAKSNodeClass resolves the AKSNodeClass from the NodeClaim's NodeClassRef. If the NodeClass for the nodeClaim has DeletionTimestamp set, an error is returned.
func GetVM ¶
func GetVM(ctx context.Context, vmInstanceProvider instance.VMProvider, nodeClaim *karpv1.NodeClaim) (*armcompute.VirtualMachine, error)
TODO: Could go onto vmInstanceProvider? GetVM gets the Azure VM associated with the NodeClaim
func GetVMName ¶
GetVMName parses the provider ID stored on the node to get the vmName associated with a node
func UsingAKSNodeClassPredicate ¶ added in v1.10.0
UsingAKSNodeClassPredicate creates a predicate to filter node claim using AKS node class.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.