pkg/agent/datamodel/const.go (74 lines of code) (raw):

// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package datamodel // the orchestrators supported by vlabs. const ( // Kubernetes is the string constant for the Kubernetes orchestrator type. Kubernetes string = "Kubernetes" ) const ( // KubernetesWindowsDockerVersion is the default version for docker on Windows nodes in kubernetes. KubernetesWindowsDockerVersion = "20.10.9" // KubernetesDefaultWindowsSku is the default SKU for Windows VMs in kubernetes. KubernetesDefaultWindowsSku = "Datacenter-Core-1809-with-Containers-smalldisk" // KubernetesDefaultContainerdWindowsSandboxIsolation is the default containerd handler for windows pods. KubernetesDefaultContainerdWindowsSandboxIsolation = "process" ) // Availability profiles. const ( // AvailabilitySet means that the vms are in an availability set. AvailabilitySet = "AvailabilitySet" /* DefaultOrchestratorName specifies the 3 character orchestrator code of the cluster template and affects. resource naming. */ DefaultOrchestratorName = "k8s" /* DefaultHostedProfileMasterName specifies the 3 character orchestrator code of the clusters with hosted. master profiles. */ DefaultHostedProfileMasterName = "aks" // DefaultSubnetNameResourceSegmentIndex specifies the default subnet name resource segment index. DefaultSubnetNameResourceSegmentIndex = 10 // DefaultVnetResourceGroupSegmentIndex specifies the default virtual network resource segment index. DefaultVnetResourceGroupSegmentIndex = 4 // DefaultVnetNameResourceSegmentIndex specifies the default virtual network name segment index. DefaultVnetNameResourceSegmentIndex = 8 // VirtualMachineScaleSets means that the vms are in a virtual machine scaleset. VirtualMachineScaleSets = "VirtualMachineScaleSets" // ScaleSetPrioritySpot means the ScaleSet will use Spot VMs. ScaleSetPrioritySpot = "Spot" ) // Supported container runtimes. const ( Docker = "docker" KataContainers = "kata-containers" Containerd = "containerd" ) // storage profiles. const ( // ManagedDisks means that the nodes use managed disks for their os and attached volumes. ManagedDisks = "ManagedDisks" ) const ( // NetworkPluginAzure is the string expression for Azure CNI plugin. NetworkPluginAzure = "azure" // NetworkPluginNone is the string expression for no CNI plugin. NetworkPluginNone = "none" // VMSSVMType is the string const for the vmss VM Type. VMSSVMType = "vmss" // StandardVMType is the string const for the standard VM Type. StandardVMType = "standard" ) const ( // DefaultEnableCSIProxyWindows determines if CSI proxy should be enabled by default for Windows nodes. DefaultEnableCSIProxyWindows = false // DefaultWindowsSSHEnabled is the default windowsProfile.sshEnabled value. DefaultWindowsSSHEnabled = true // DefaultWindowsSecureTLSEnabled is the default windowsProfile.WindowsSecureTlsEnabled value. DefaultWindowsSecureTLSEnabled = false ) const ( // AzurePublicCloud is a const string reference identifier for public cloud. AzurePublicCloud = "AzurePublicCloud" // AzureChinaCloud is a const string reference identifier for china cloud. AzureChinaCloud = "AzureChinaCloud" // AzureGermanCloud is a const string reference identifier for german cloud. AzureGermanCloud = "AzureGermanCloud" // AzureUSGovernmentCloud is a const string reference identifier for us government cloud. AzureUSGovernmentCloud = "AzureUSGovernmentCloud" // AzureStackCloud is a const string reference identifier for Azure Stack cloud. AzureStackCloud = "AzureStackCloud" ) const ( // AzureADIdentitySystem is a const string reference identifier for Azure AD identity System. AzureADIdentitySystem = "azure_ad" ) // Known container runtime configuration keys. const ( ContainerDataDirKey = "dataDir" ) const ( // KubernetesDefaultRelease is the default Kubernetes release. KubernetesDefaultRelease string = "1.13" // KubernetesDefaultReleaseWindows is the default Kubernetes release. KubernetesDefaultReleaseWindows string = "1.14" ) // Addon name consts. const ( // IPMASQAgentAddonName is the name of the ip masq agent addon. IPMASQAgentAddonName = "ip-masq-agent" // AADPodIdentityAddonName is the name of the aad-pod-identity addon deployment. AADPodIdentityAddonName = "aad-pod-identity" ) const ( /* TempDiskContainerDataDir is the path used to mount docker images, emptyDir volumes, and kubelet data when KubeletDiskType == TempDisk. */ TempDiskContainerDataDir = "/mnt/aks/containers" ) const ( OSSKUCBLMariner = "CBLMariner" OSSKUMariner = "Mariner" OSSKUAzureLinux = "AzureLinux" ) // Feature Flags. const ( BlockOutboundInternet = "BlockOutboundInternet" CSERunInBackground = "CSERunInBackground" EnableIPv6DualStack = "EnableIPv6DualStack" EnableIPv6Only = "EnableIPv6Only" EnableWinDSR = "EnableWinDSR" )