Documentation
¶
Index ¶
- Constants
- Variables
- func Apply(defaultMachinePlatform, machinePool *azure.MachinePool)
- func ComputeInstanceType(cloud azure.CloudEnvironment, region string, arch types.Architecture) string
- func ControlPlaneInstanceType(cloud azure.CloudEnvironment, region string, arch types.Architecture) string
- func SetMachinePoolDefaults(p *azure.MachinePool)
- func SetPlatformDefaults(p *azure.Platform)
Constants ¶
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 ¶
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 ¶
SetPlatformDefaults sets the defaults for the platform.
Types ¶
This section is empty.