Documentation ¶
Overview ¶
Package utils provides helper methods to assist with ARM operations.
Index ¶
- func GetK8sVMName(p *api.Properties, agentPoolProfile *api.AgentPoolProfile, agentIndex int) (string, error)
- func GetVMNameIndex(osType compute.OperatingSystemTypes, vmName string) (int, error)
- func K8sLinuxVMNameParts(vmName string) (poolIdentifier, nameSuffix string, agentIndex int, err error)
- func ResourceName(id string) (string, error)
- func SplitBlobURI(uri string) (string, string, string, error)
- func VmssNameParts(vmssName string) (poolIdentifier, nameSuffix string, err error)
- func WindowsVMNameParts(vmName string) (poolPrefix string, orch string, poolIndex int, agentIndex int, err error)
- func WindowsVmssNameParts(vmssName string) (poolIdentifier string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetK8sVMName ¶
func GetK8sVMName(p *api.Properties, agentPoolProfile *api.AgentPoolProfile, agentIndex int) (string, error)
GetK8sVMName reconstructs the VM name
func GetVMNameIndex ¶
func GetVMNameIndex(osType compute.OperatingSystemTypes, vmName string) (int, error)
GetVMNameIndex return VM index of a node in the Kubernetes cluster
func K8sLinuxVMNameParts ¶
func K8sLinuxVMNameParts(vmName string) (poolIdentifier, nameSuffix string, agentIndex int, err error)
K8sLinuxVMNameParts returns parts of Linux VM name e.g: k8s-agentpool1-11290731-0
func ResourceName ¶
ResourceName returns the last segment (the resource name) for the specified resource identifier.
func SplitBlobURI ¶
SplitBlobURI returns a decomposed blob URI parts: accountName, containerName, blobName.
func VmssNameParts ¶
VmssNameParts returns parts of Linux VM name e.g: k8s-agentpool1-11290731-0
func WindowsVMNameParts ¶
func WindowsVMNameParts(vmName string) (poolPrefix string, orch string, poolIndex int, agentIndex int, err error)
WindowsVMNameParts returns parts of Windows VM name
func WindowsVmssNameParts ¶ added in v0.33.4
WindowsVmssNameParts returns the agent pool name from the VMSS name. For windows, the VMSS name is 'aks' concatenated with agentpool name
Types ¶
This section is empty.