Documentation ¶
Index ¶
- Variables
- func GetRecordType(ip string) privatedns.RecordType
- func GetSpotVMOptions(spotVMOptions *infrav1.SpotVMOptions) (compute.VirtualMachinePriorityTypes, compute.VirtualMachineEvictionPolicyTypes, ...)
- func ImageToSDK(image *infrav1.Image) (*compute.ImageReference, error)
- func MapToTags(src map[string]*string) infrav1.Tags
- func SDKImageToImage(sdkImageRef *compute.ImageReference, isThirdPartyImage bool) infrav1.Image
- func SDKToVM(v compute.VirtualMachine) (*infrav1.VM, error)
- func SDKToVMSS(sdkvmss compute.VirtualMachineScaleSet, ...) *azure.VMSS
- func SDKToVMSSVM(sdkInstance compute.VirtualMachineScaleSetVM) *azure.VMSSVM
- func SKUtoSDK(src infrav1.SKU) network.LoadBalancerSkuName
- func SecurityRuleToSDK(rule infrav1.SecurityRule) network.SecurityRule
- func TagsToMap(src infrav1.Tags) map[string]*string
- func UserAssignedIdentitiesToVMSDK(identities []infrav1.UserAssignedIdentity) (map[string]*compute.VirtualMachineIdentityUserAssignedIdentitiesValue, error)
- func UserAssignedIdentitiesToVMSSSDK(identities []infrav1.UserAssignedIdentity) (map[string]*compute.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, ...)
Constants ¶
This section is empty.
Variables ¶
var ErrUserAssignedIdentitiesNotFound = errors.New("the user-assigned identity provider ids must not be null or empty for 'UserAssigned' identity type")
ErrUserAssignedIdentitiesNotFound is the error thrown when user assigned identities is not passed with the identity type being UserAssigned.
Functions ¶
func GetRecordType ¶
func GetRecordType(ip string) privatedns.RecordType
GetRecordType returns the SDK record type to use based on the type of IP to map. Currently only allows type A (IPv4) and AAAA (IPv6) records.
func GetSpotVMOptions ¶
func GetSpotVMOptions(spotVMOptions *infrav1.SpotVMOptions) (compute.VirtualMachinePriorityTypes, compute.VirtualMachineEvictionPolicyTypes, *compute.BillingProfile, error)
GetSpotVMOptions takes the spot vm options and returns the individual vm priority, eviction policy and billing profile.
func ImageToSDK ¶
func ImageToSDK(image *infrav1.Image) (*compute.ImageReference, error)
ImageToSDK converts a CAPZ Image (as RawExtension) to a Azure SDK Image Reference.
func SDKImageToImage ¶
func SDKImageToImage(sdkImageRef *compute.ImageReference, isThirdPartyImage bool) infrav1.Image
SDKImageToImage converts a SDK image reference to infrav1.Image.
func SDKToVM ¶
func SDKToVM(v compute.VirtualMachine) (*infrav1.VM, error)
SDKToVM converts an Azure SDK VirtualMachine to the CAPZ VM type.
func SDKToVMSS ¶
func SDKToVMSS(sdkvmss compute.VirtualMachineScaleSet, sdkinstances []compute.VirtualMachineScaleSetVM) *azure.VMSS
SDKToVMSS converts an Azure SDK VirtualMachineScaleSet to the AzureMachinePool type.
func SDKToVMSSVM ¶
func SDKToVMSSVM(sdkInstance compute.VirtualMachineScaleSetVM) *azure.VMSSVM
SDKToVMSSVM converts an Azure SDK VirtualMachineScaleSetVM into an infrav1exp.VMSSVM.
func SKUtoSDK ¶
func SKUtoSDK(src infrav1.SKU) network.LoadBalancerSkuName
SKUtoSDK converts infrav1.SKU into a network.LoadBalancerSkuName.
func SecurityRuleToSDK ¶
func SecurityRuleToSDK(rule infrav1.SecurityRule) network.SecurityRule
SecurityRuleToSDK converts a CAPZ security rule to an Azure network security rule.
func UserAssignedIdentitiesToVMSDK ¶
func UserAssignedIdentitiesToVMSDK(identities []infrav1.UserAssignedIdentity) (map[string]*compute.VirtualMachineIdentityUserAssignedIdentitiesValue, error)
UserAssignedIdentitiesToVMSDK converts CAPZ user assigned identities associated with the Virtual Machine to Azure SDK identities The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
func UserAssignedIdentitiesToVMSSSDK ¶
func UserAssignedIdentitiesToVMSSSDK(identities []infrav1.UserAssignedIdentity) (map[string]*compute.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, error)
UserAssignedIdentitiesToVMSSSDK converts CAPZ user assigned identities associated with the Virtual Machine Scale Set to Azure SDK identities Similar to UserAssignedIdentitiesToVMSDK.
Types ¶
This section is empty.