Documentation
¶
Index ¶
Constants ¶
View Source
const ( KarpenterManagedTagKey = "karpenter.azure.com_cluster" KarpenterAKSMachineNodeClaimTagKey = "karpenter.azure.com_aksmachine_nodeclaim" KarpenterAKSMachineCreationTimestampTagKey = "karpenter.azure.com_aksmachine_creationtimestamp" // TODO: stop using tag and use MachineStatus.CreationTimestamp when the change is live. See inplaceupdate/patch.go for details. BillingTagKey = "compute.aks.billing" BillingTagValueLinux = "linux" )
Variables ¶
View Source
var (
NodePoolTagKey = strings.ReplaceAll(karpv1.NodePoolLabelKey, "/", "_")
)
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider( _ context.Context, imageFamily imagefamily.Resolver, imageProvider imagefamily.NodeImageProvider, caBundle *string, clusterEndpoint string, tenantID, subscriptionID, clusterResourceGroup string, kubeletIdentityClientID, resourceGroup, location, provisionMode string, ) *Provider
ATTENTION!!!: changes here may NOT be effective on AKS machine nodes (ProvisionModeAKSMachineAPI); See aksmachineinstance.go/aksmachineinstancehelpers.go. Refactoring for code unification is not being invested immediately.
func (*Provider) GetTemplate ¶
func (p *Provider) GetTemplate( ctx context.Context, nodeClass *v1beta1.AKSNodeClass, nodeClaim *karpv1.NodeClaim, instanceType *cloudprovider.InstanceType, additionalLabels map[string]string, ) (*Template, error)
ATTENTION!!!: changes here may NOT be effective on AKS machine nodes (ProvisionModeAKSMachineAPI); See aksmachineinstance.go/aksmachineinstancehelpers.go. Refactoring for code unification is not being invested immediately.
type Template ¶
type Template struct {
ScriptlessCustomData string
ImageID string
SubnetID string
Tags map[string]*string
CustomScriptsCustomData string
CustomScriptsCSE string
IsWindows bool
StorageProfileDiskType string
StorageProfileIsEphemeral bool
StorageProfilePlacement armcompute.DiffDiskPlacement
StorageProfileSizeGB int32
}
ATTENTION!!!: changes here may NOT be effective on AKS machine nodes (ProvisionModeAKSMachineAPI); See aksmachineinstance.go/aksmachineinstancehelpers.go. Refactoring for code unification is not being invested immediately.
Click to show internal directories.
Click to hide internal directories.