launchtemplate

package
v0.0.3-test.load Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0, Apache-2.0 Imports: 15 Imported by: 0

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

func Tags added in v1.6.2

func Tags(
	options *options.Options,
	nodeClass *v1beta1.AKSNodeClass,
	nodeClaim *karpv1.NodeClaim,
) map[string]*string

TODO: Would like to refactor this out of launchtemplate at some point Tags returns the tags to be applied to a resource (VM, Disk, NIC, etc)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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