defaults

package
v1.5.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 2 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const CachingTypeNone = string(armcompute.CachingTypesNone)

CachingTypeNone is the caching mode an omitted data disk cachingType defaults to. It matches what the Machine API path effectively applies and Microsoft's recommendation for write-heavy data disks, and it is the only mode valid for every SKU (UltraSSD_LRS requires it). Defaulting it here keeps both provisioning paths (CAPZ at install time, Machine API afterwards) on one value: the CAPZ webhook would otherwise default an unset cachingType to ReadWrite. The pool validation accepts this same constant as the only caching mode on an UltraSSD_LRS data disk, so the default can never fall foul of the validation. The value is Azure's own spelling of the mode, taken from the Azure SDK.

Variables

View Source
var (

	// AzurestackMinimumDiskSize is the minimum disk size value for azurestack.
	AzurestackMinimumDiskSize int32 = 128
	// AzurestackMaximumDiskSize is the maximum disk size value for azurestack.
	AzurestackMaximumDiskSize int32 = 1023
)

Functions

func Apply

func Apply(defaultMachinePlatform, machinePool *azure.MachinePool)

Apply sets values from the default machine platform to the machinepool.

func ComputeInstanceType

func ComputeInstanceType(cloud azure.CloudEnvironment, region string, arch types.Architecture) string

ComputeInstanceType sets the defaults for compute instances. Minimum requirements are 2 CPU's, 8GiB of ram, and 120GiB storage. D4as_v5 gives us 4 CPU's, 16GiB ram and 32GiB of temporary storage DS3_v2 gives us 4 CPUs, 14GiB ram, and 28GiB of temporary storage.

func ControlPlaneInstanceType

func ControlPlaneInstanceType(cloud azure.CloudEnvironment, region string, arch types.Architecture) string

ControlPlaneInstanceType sets the defaults for control plane instances. Minimum requirements are 4 CPU's, 16GiB of ram, and 120GiB storage. D8as_v5 gives us 8 CPU's, 32GiB ram and 64GiB of temporary storage This extra bump is done to prevent etcd from overloading DS4_v2 gives us 8 CPUs, 28GiB ram, and 56GiB of temporary storage.

func SetMachinePoolDefaults

func SetMachinePoolDefaults(p *azure.MachinePool)

SetMachinePoolDefaults sets the defaults for the platform-specific machine pool configuration.

func SetPlatformDefaults

func SetPlatformDefaults(p *azure.Platform)

SetPlatformDefaults sets the defaults for the platform.

Types

This section is empty.

Jump to

Keyboard shortcuts

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