{"modulePath":"github.com/devigned/aks-engine","version":"v0.38.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package vlabs\n\nPackage vlabs stores an experimental API model.\n\n## Constants\n\n```go\nconst (\n\t// DCOS is the string constant for DCOS orchestrator type and defaults to DCOS188\n\tDCOS string = \"DCOS\"\n\t// Swarm is the string constant for the Swarm orchestrator type\n\tSwarm string = \"Swarm\"\n\t// Kubernetes is the string constant for the Kubernetes orchestrator type\n\tKubernetes string = \"Kubernetes\"\n\t// SwarmMode is the string constant for the Swarm Mode orchestrator type\n\tSwarmMode string = \"SwarmMode\"\n)\n```\nthe orchestrators supported by vlabs\n\n```go\nconst (\n\t// MinAgentCount are the minimum number of agents per agent pool\n\tMinAgentCount = 1\n\t// MaxAgentCount are the maximum number of agents per agent pool\n\tMaxAgentCount = 100\n\t// MinPort specifies the minimum tcp port to open\n\tMinPort = 1\n\t// MaxPort specifies the maximum tcp port to open\n\tMaxPort = 65535\n\t// MaxDisks specifies the maximum attached disks to add to the cluster\n\tMaxDisks = 4\n\t// MinDiskSizeGB specifies the minimum attached disk size\n\tMinDiskSizeGB = 1\n\t// MaxDiskSizeGB specifies the maximum attached disk size\n\tMaxDiskSizeGB = 1023\n\t// MinIPAddressCount specifies the minimum number of IP addresses per network interface\n\tMinIPAddressCount = 1\n\t// MaxIPAddressCount specifies the maximum number of IP addresses per network interface\n\tMaxIPAddressCount = 256\n)\n```\nvalidation values\n\n```go\nconst (\n\t// AvailabilitySet means that the vms are in an availability set\n\tAvailabilitySet = \"AvailabilitySet\"\n\t// VirtualMachineScaleSets means that the vms are in a virtual machine scaleset\n\tVirtualMachineScaleSets = \"VirtualMachineScaleSets\"\n)\n```\nAvailability profiles\n\n```go\nconst (\n\t// StorageAccount means that the nodes use raw storage accounts for their os and attached volumes\n\tStorageAccount = \"StorageAccount\"\n\t// ManagedDisks means that the nodes use managed disks for their os and attached volumes\n\tManagedDisks = \"ManagedDisks\"\n)\n```\nstorage profiles\n\n```go\nconst (\n\tDocker          = \"docker\"\n\tClearContainers = \"clear-containers\"\n\tKataContainers  = \"kata-containers\"\n\tContainerd      = \"containerd\"\n)\n```\nSupported container runtimes\n\n```go\nconst (\n\t// DefaultNetworkPlugin defines the network plugin to use by default\n\tDefaultNetworkPlugin = \"azure\"\n\t// DefaultNetworkPluginWindows defines the network plugin to use by default for clusters with Windows agent pools\n\tDefaultNetworkPluginWindows = \"azure\"\n\t// DefaultNetworkPolicy defines the network policy to use by default\n\tDefaultNetworkPolicy = \"\"\n\t// NetworkPolicyCilium is the string expression for cilium network policy config option\n\tNetworkPolicyCilium = \"cilium\"\n\t// NetworkPluginCilium is the string expression for cilium network policy config option\n\tNetworkPluginCilium = NetworkPolicyCilium\n)\n```\nvlabs default configuration\n\n```go\nconst (\n\t// AzureStackCloud is a const string reference identifier for Azure Stack cloud\n\tAzureStackCloud = \"AzureStackCloud\"\n\t// MaxAzureStackManagedDiskSize is max etcd disk size supported on AzureStackCloud\n\tMaxAzureStackManagedDiskSize = 1023\n)\n```\n\n```go\nconst (\n\t// AzureADIdentitySystem is a const string reference identifier for Azure AD identity System\n\tAzureADIdentitySystem = \"azure_ad\"\n\t// ADFSIdentitySystem is a const string reference identifier for ADFS identity System\n\tADFSIdentitySystem = \"adfs\"\n)\n```\n\n```go\nconst (\n\t// AzureStackDependenciesLocationPublic indicates to get dependencies from in AzurePublic cloud\n\tAzureStackDependenciesLocationPublic = \"public\"\n\t// AzureStackDependenciesLocationChina indicates to get dependencies from AzureChina cloud\n\tAzureStackDependenciesLocationChina = \"china\"\n\t// AzureStackDependenciesLocationGerman indicates to get dependencies from AzureGerman cloud\n\tAzureStackDependenciesLocationGerman = \"german\"\n\t// AzureStackDependenciesLocationUSGovernment indicates to get dependencies from AzureUSGovernment cloud\n\tAzureStackDependenciesLocationUSGovernment = \"usgovernment\"\n)\n```\n\n```go\nconst (\n\t// ClientSecretAuthMethod indicates to use client seret for authentication\n\tClientSecretAuthMethod = \"client_secret\"\n\t// ClientCertificateAuthMethod indicates to use client certificate for authentication\n\tClientCertificateAuthMethod = \"client_certificate\"\n)\n```\n\n```go\nconst (\n\t// APIVersion is the version of this API\n\tAPIVersion = \"vlabs\"\n)\n```\n\n```go\nconst (\n\t// KubernetesMinMaxPods is the minimum valid value for MaxPods, necessary for running kube-system pods\n\tKubernetesMinMaxPods = 5\n)\n```\nKubernetes configuration\n\n```go\nconst StandardLoadBalancerSku = \"Standard\"\n```\nStandardLoadBalancerSku is the string const for Azure Standard Load Balancer\n\n## Variables\n\n```go\nvar (\n\t// NetworkPluginValues holds the valid values for network plugin implementation\n\tNetworkPluginValues = [...]string{\"\", \"kubenet\", \"azure\", NetworkPluginCilium, \"flannel\"}\n\n\t// NetworkPolicyValues holds the valid values for a network policy\n\t// \"azure\" and \"none\" are there for backwards-compatibility\n\tNetworkPolicyValues = [...]string{\"\", \"calico\", NetworkPolicyCilium, \"azure\", \"none\"}\n\n\t// ContainerRuntimeValues holds the valid values for container runtimes\n\tContainerRuntimeValues = [...]string{\"\", Docker, ClearContainers, KataContainers, Containerd}\n\n\t// DistroValues holds the valid values for OS distros\n\tDistroValues = []Distro{\"\", Ubuntu, Ubuntu1804, RHEL, CoreOS, AKSUbuntu1604, AKSUbuntu1804, ACC1604}\n\n\t// DependenciesLocationValues holds the valid values for dependencies location\n\tDependenciesLocationValues = []DependenciesLocation{\"\", AzureStackDependenciesLocationPublic, AzureStackDependenciesLocationChina, AzureStackDependenciesLocationGerman, AzureStackDependenciesLocationUSGovernment}\n)\n```\n\n## Types\n\n```go\ntype AADProfile struct {\n\t// The client AAD application ID.\n\tClientAppID string `json:\"clientAppID,omitempty\"`\n\t// The server AAD application ID.\n\tServerAppID string `json:\"serverAppID,omitempty\"`\n\t// The AAD tenant ID to use for authentication.\n\t// If not specified, will use the tenant of the deployment subscription.\n\t// Optional\n\tTenantID string `json:\"tenantID,omitempty\"`\n\t// The Azure Active Directory Group Object ID that will be assigned the\n\t// cluster-admin RBAC role.\n\t// Optional\n\tAdminGroupID string `json:\"adminGroupID,omitempty\"`\n}\n```\nAADProfile specifies attributes for AAD integration\n\n```go\ntype AgentPoolProfile struct {\n\tName                                string               `json:\"name\" validate:\"required\"`\n\tCount                               int                  `json:\"count\" validate:\"required,min=1,max=100\"`\n\tVMSize                              string               `json:\"vmSize\" validate:\"required\"`\n\tOSDiskSizeGB                        int                  `json:\"osDiskSizeGB,omitempty\" validate:\"min=0,max=1023\"`\n\tDNSPrefix                           string               `json:\"dnsPrefix,omitempty\"`\n\tOSType                              OSType               `json:\"osType,omitempty\"`\n\tPorts                               []int                `json:\"ports,omitempty\" validate:\"dive,min=1,max=65535\"`\n\tAvailabilityProfile                 string               `json:\"availabilityProfile\"`\n\tScaleSetPriority                    string               `json:\"scaleSetPriority,omitempty\" validate:\"eq=Regular|eq=Low|len=0\"`\n\tScaleSetEvictionPolicy              string               `json:\"scaleSetEvictionPolicy,omitempty\" validate:\"eq=Delete|eq=Deallocate|len=0\"`\n\tStorageProfile                      string               `json:\"storageProfile\" validate:\"eq=StorageAccount|eq=ManagedDisks|len=0\"`\n\tDiskSizesGB                         []int                `json:\"diskSizesGB,omitempty\" validate:\"max=4,dive,min=1,max=1023\"`\n\tVnetSubnetID                        string               `json:\"vnetSubnetID,omitempty\"`\n\tIPAddressCount                      int                  `json:\"ipAddressCount,omitempty\" validate:\"min=0,max=256\"`\n\tDistro                              Distro               `json:\"distro,omitempty\"`\n\tKubernetesConfig                    *KubernetesConfig    `json:\"kubernetesConfig,omitempty\"`\n\tImageRef                            *ImageReference      `json:\"imageReference,omitempty\"`\n\tRole                                AgentPoolProfileRole `json:\"role,omitempty\"`\n\tAcceleratedNetworkingEnabled        *bool                `json:\"acceleratedNetworkingEnabled,omitempty\"`\n\tAcceleratedNetworkingEnabledWindows *bool                `json:\"acceleratedNetworkingEnabledWindows,omitempty\"`\n\tVMSSOverProvisioningEnabled         *bool                `json:\"vmssOverProvisioningEnabled,omitempty\"`\n\tAuditDEnabled                       *bool                `json:\"auditDEnabled,omitempty\"`\n\tCustomVMTags                        map[string]string    `json:\"customVMTags,omitempty\"`\n\n\tFQDN                              string            `json:\"fqdn\"`\n\tCustomNodeLabels                  map[string]string `json:\"customNodeLabels,omitempty\"`\n\tPreProvisionExtension             *Extension        `json:\"preProvisionExtension\"`\n\tExtensions                        []Extension       `json:\"extensions\"`\n\tSinglePlacementGroup              *bool             `json:\"singlePlacementGroup,omitempty\"`\n\tAvailabilityZones                 []string          `json:\"availabilityZones,omitempty\"`\n\tEnableVMSSNodePublicIP            *bool             `json:\"enableVMSSNodePublicIP,omitempty\"`\n\tLoadBalancerBackendAddressPoolIDs []string          `json:\"loadBalancerBackendAddressPoolIDs,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nAgentPoolProfile represents an agent pool definition\n\n```go\nfunc (a *AgentPoolProfile) GetSubnet() string\n```\nGetSubnet returns the read-only subnet for the agent pool\n\n```go\nfunc (a *AgentPoolProfile) HasAvailabilityZones() bool\n```\nHasAvailabilityZones returns true if the agent pool has availability zones\n\n```go\nfunc (a *AgentPoolProfile) HasDisks() bool\n```\nHasDisks returns true if the customer specified disks\n\n```go\nfunc (a *AgentPoolProfile) IsAvailabilitySets() bool\n```\nIsAvailabilitySets returns true if the customer specified disks\n\n```go\nfunc (a *AgentPoolProfile) IsCoreOS() bool\n```\nIsCoreOS returns true if the agent specified a CoreOS distro\n\n```go\nfunc (a *AgentPoolProfile) IsCustomVNET() bool\n```\nIsCustomVNET returns true if the customer brought their own VNET\n\n```go\nfunc (a *AgentPoolProfile) IsLinux() bool\n```\nIsLinux returns true if the agent pool is linux\n\n```go\nfunc (a *AgentPoolProfile) IsManagedDisks() bool\n```\nIsManagedDisks returns true if the customer specified managed disks\n\n```go\nfunc (a *AgentPoolProfile) IsNSeriesSKU() bool\n```\nIsNSeriesSKU returns true if the agent pool contains an N-series (NVIDIA GPU) VM\n\n```go\nfunc (a *AgentPoolProfile) IsRHEL() bool\n```\nIsRHEL returns true if the agent pool specified a RHEL distro\n\n```go\nfunc (a *AgentPoolProfile) IsStorageAccount() bool\n```\nIsStorageAccount returns true if the customer specified storage account\n\n```go\nfunc (a *AgentPoolProfile) IsUbuntu() bool\n```\nIsUbuntu returns true if the master profile distro is any ubuntu distro\n\n```go\nfunc (a *AgentPoolProfile) IsUbuntu1604() bool\n```\nIsUbuntu1604 returns true if the agent pool profile distro is based on Ubuntu 16.04\n\n```go\nfunc (a *AgentPoolProfile) IsUbuntu1804() bool\n```\nIsUbuntu1804 returns true if the agent pool profile distro is based on Ubuntu 16.04\n\n```go\nfunc (a *AgentPoolProfile) IsVirtualMachineScaleSets() bool\n```\nIsVirtualMachineScaleSets returns true if the agent pool availability profile is VMSS\n\n```go\nfunc (a *AgentPoolProfile) IsWindows() bool\n```\nIsWindows returns true if the agent pool is windows\n\n```go\nfunc (a *AgentPoolProfile) SetSubnet(subnet string)\n```\nSetSubnet sets the read-only subnet for the agent pool\n\n```go\ntype AgentPoolProfileRole string\n```\nAgentPoolProfileRole represents an agent role\n\n```go\nconst (\n\t// AgentPoolProfileRoleEmpty is the empty role\n\tAgentPoolProfileRoleEmpty AgentPoolProfileRole = \"\"\n\t// AgentPoolProfileRoleInfra is the infra role\n\tAgentPoolProfileRoleInfra AgentPoolProfileRole = \"infra\"\n)\n```\n\n```go\ntype AzureEndpointConfig struct {\n\tResourceManagerVMDNSSuffix string `json:\"resourceManagerVMDNSSuffix,omitempty\"`\n}\n```\nAzureEndpointConfig describes an Azure endpoint\n\n```go\ntype AzureEnvironmentSpecConfig struct {\n\tCloudName            string                        `json:\"cloudName,omitempty\"`\n\tDockerSpecConfig     DockerSpecConfig              `json:\"dockerSpecConfig,omitempty\"`\n\tKubernetesSpecConfig KubernetesSpecConfig          `json:\"kubernetesSpecConfig,omitempty\"`\n\tDCOSSpecConfig       DCOSSpecConfig                `json:\"-\"`\n\tEndpointConfig       AzureEndpointConfig           `json:\"endpointConfig,omitempty\"`\n\tOSImageConfig        map[Distro]AzureOSImageConfig `json:\"osImageConfig,omitempty\"`\n}\n```\nAzureEnvironmentSpecConfig is the overall configuration differences in different cloud environments.\n\n```go\ntype AzureOSImageConfig struct {\n\tImageOffer     string `json:\"imageOffer,omitempty\"`\n\tImageSku       string `json:\"imageSku,omitempty\"`\n\tImagePublisher string `json:\"imagePublisher,omitempty\"`\n\tImageVersion   string `json:\"imageVersion,omitempty\"`\n}\n```\nAzureOSImageConfig describes an Azure OS image\n\n```go\ntype BootstrapProfile struct {\n\tVMSize       string `json:\"vmSize,omitempty\"`\n\tOSDiskSizeGB int    `json:\"osDiskSizeGB,omitempty\"`\n\tOAuthEnabled bool   `json:\"oauthEnabled,omitempty\"`\n\tStaticIP     string `json:\"staticIP,omitempty\"`\n\tSubnet       string `json:\"subnet,omitempty\"`\n}\n```\nBootstrapProfile represents the definition of the DCOS bootstrap node used to deploy the cluster\n\n```go\ntype CertificateProfile struct {\n\t// CaCertificate is the certificate authority certificate.\n\tCaCertificate string `json:\"caCertificate,omitempty\"`\n\t// CaPrivateKey is the certificate authority key.\n\tCaPrivateKey string `json:\"caPrivateKey,omitempty\"`\n\t// ApiServerCertificate is the rest api server certificate, and signed by the CA\n\tAPIServerCertificate string `json:\"apiServerCertificate,omitempty\"`\n\t// ApiServerPrivateKey is the rest api server private key, and signed by the CA\n\tAPIServerPrivateKey string `json:\"apiServerPrivateKey,omitempty\"`\n\t// ClientCertificate is the certificate used by the client kubelet services and signed by the CA\n\tClientCertificate string `json:\"clientCertificate,omitempty\"`\n\t// ClientPrivateKey is the private key used by the client kubelet services and signed by the CA\n\tClientPrivateKey string `json:\"clientPrivateKey,omitempty\"`\n\t// KubeConfigCertificate is the client certificate used for kubectl cli and signed by the CA\n\tKubeConfigCertificate string `json:\"kubeConfigCertificate,omitempty\"`\n\t// KubeConfigPrivateKey is the client private key used for kubectl cli and signed by the CA\n\tKubeConfigPrivateKey string `json:\"kubeConfigPrivateKey,omitempty\"`\n\t// EtcdServerCertificate is the server certificate for etcd, and signed by the CA\n\tEtcdServerCertificate string `json:\"etcdServerCertificate,omitempty\"`\n\t// EtcdServerPrivateKey is the server private key for etcd, and signed by the CA\n\tEtcdServerPrivateKey string `json:\"etcdServerPrivateKey,omitempty\"`\n\t// EtcdClientCertificate is etcd client certificate, and signed by the CA\n\tEtcdClientCertificate string `json:\"etcdClientCertificate,omitempty\"`\n\t// EtcdClientPrivateKey is the etcd client private key, and signed by the CA\n\tEtcdClientPrivateKey string `json:\"etcdClientPrivateKey,omitempty\"`\n\t// EtcdPeerCertificates is list of etcd peer certificates, and signed by the CA\n\tEtcdPeerCertificates []string `json:\"etcdPeerCertificates,omitempty\"`\n\t// EtcdPeerPrivateKeys is list of etcd peer private keys, and signed by the CA\n\tEtcdPeerPrivateKeys []string `json:\"etcdPeerPrivateKeys,omitempty\"`\n}\n```\nCertificateProfile represents the definition of the master cluster The JSON parameters could be either a plain text, or referenced to a secret in a keyvault. In the latter case, the format of the parameter's value should be \"/subscriptions/\\\u003cSUB\\_ID\u003e/resourceGroups/\\\u003cRG\\_NAME\u003e/providers/Microsoft.KeyVault/vaults/\\\u003cKV\\_NAME\u003e/secrets/\\\u003cNAME\u003e\\[/\\\u003cVERSION\u003e]\" where:\n\n\t\u003cSUB_ID\u003e is the subscription ID of the keyvault\n\t\u003cRG_NAME\u003e is the resource group of the keyvault\n\t\u003cKV_NAME\u003e is the name of the keyvault\n\t\u003cNAME\u003e is the name of the secret\n\t\u003cVERSION\u003e (optional) is the version of the secret (default: the latest version)\n\n```go\ntype ContainerService struct {\n\tID       string                `json:\"id,omitempty\"`\n\tLocation string                `json:\"location,omitempty\"`\n\tName     string                `json:\"name,omitempty\"`\n\tPlan     *ResourcePurchasePlan `json:\"plan,omitempty\"`\n\tTags     map[string]string     `json:\"tags,omitempty\"`\n\tType     string                `json:\"type,omitempty\"`\n\n\tProperties *Properties `json:\"properties\"`\n}\n```\nContainerService complies with the ARM model of resource definition in a JSON template.\n\n```go\nfunc (cs *ContainerService) Merge(ecs *ContainerService) error\n```\nMerge existing containerService attribute into cs\n\n```go\nfunc (cs *ContainerService) Validate(isUpdate bool) error\n```\nValidate implements validation for ContainerService\n\n```go\ntype CustomCloudProfile struct {\n\tEnvironment                *azure.Environment          `json:\"environment,omitempty\"`\n\tAzureEnvironmentSpecConfig *AzureEnvironmentSpecConfig `json:\"azureEnvironmentSpecConfig,omitempty\"`\n\tIdentitySystem             string                      `json:\"identitySystem,omitempty\"`\n\tAuthenticationMethod       string                      `json:\"authenticationMethod,omitempty\"`\n\tDependenciesLocation       DependenciesLocation        `json:\"dependenciesLocation,omitempty\"`\n\tPortalURL                  string                      `json:\"portalURL,omitempty\"`\n}\n```\nCustomCloudProfile represents the custom cloud profile\n\n```go\ntype CustomFile struct {\n\tSource string `json:\"source,omitempty\"`\n\tDest   string `json:\"dest,omitempty\"`\n}\n```\nCustomFile has source as the full absolute source path to a file and dest is the full absolute desired destination path to put the file on a master node\n\n```go\ntype CustomNodesDNS struct {\n\tDNSServer string `json:\"dnsServer,omitempty\"`\n}\n```\nCustomNodesDNS represents the Search Domain\n\n```go\ntype CustomSearchDomain struct {\n\tName          string `json:\"name,omitempty\"`\n\tRealmUser     string `json:\"realmUser,omitempty\"`\n\tRealmPassword string `json:\"realmPassword,omitempty\"`\n}\n```\nCustomSearchDomain represents the Search Domain when the custom vnet has a windows server DNS as a nameserver.\n\n```go\ntype DCOSSpecConfig struct {\n\tDCOS188BootstrapDownloadURL     string\n\tDCOS190BootstrapDownloadURL     string\n\tDCOS198BootstrapDownloadURL     string\n\tDCOS110BootstrapDownloadURL     string\n\tDCOS111BootstrapDownloadURL     string\n\tDCOSWindowsBootstrapDownloadURL string\n\tDcosRepositoryURL               string // For custom install, for example CI, need these three addributes\n\tDcosClusterPackageListID        string // the id of the package list file\n\tDcosProviderPackageID           string // the id of the dcos-provider-xxx package\n}\n```\nDCOSSpecConfig is the configurations of DCOS\n\n```go\ntype DcosConfig struct {\n\tDcosBootstrapURL         string            `json:\"dcosBootstrapURL,omitempty\"`\n\tDcosWindowsBootstrapURL  string            `json:\"dcosWindowsBootstrapURL,omitempty\"`\n\tRegistry                 string            `json:\"registry,omitempty\"`\n\tRegistryUser             string            `json:\"registryUser,omitempty\"`\n\tRegistryPass             string            `json:\"registryPassword,omitempty\"`\n\tDcosRepositoryURL        string            `json:\"dcosRepositoryURL,omitempty\"`        // For CI use, you need to specify\n\tDcosClusterPackageListID string            `json:\"dcosClusterPackageListID,omitempty\"` // all three of these items\n\tDcosProviderPackageID    string            `json:\"dcosProviderPackageID,omitempty\"`    // repo url is the location of the build,\n\tBootstrapProfile         *BootstrapProfile `json:\"bootstrapProfile,omitempty\"`\n}\n```\nDcosConfig Configuration for DC/OS\n\n```go\ntype DependenciesLocation string\n```\nDependenciesLocation represents location to retrieve the dependencies.\n\n```go\ntype Distro string\n```\nDistro represents Linux distro to use for Linux VMs\n\n```go\nconst (\n\tUbuntu            Distro = \"ubuntu\"\n\tUbuntu1804        Distro = \"ubuntu-18.04\"\n\tRHEL              Distro = \"rhel\"\n\tCoreOS            Distro = \"coreos\"\n\tAKS1604Deprecated Distro = \"aks\"               // deprecated AKS 16.04 distro. Equivalent to aks-ubuntu-16.04.\n\tAKS1804Deprecated Distro = \"aks-1804\"          // deprecated AKS 18.04 distro. Equivalent to aks-ubuntu-18.04.\n\tAKSDockerEngine   Distro = \"aks-docker-engine\" // deprecated docker-engine distro.\n\tAKSUbuntu1604     Distro = \"aks-ubuntu-16.04\"\n\tAKSUbuntu1804     Distro = \"aks-ubuntu-18.04\"\n\tACC1604           Distro = \"acc-16.04\"\n)\n```\nthe LinuxDistros supported by vlabs\n\n```go\ntype DockerSpecConfig struct {\n\tDockerEngineRepo         string `json:\"dockerEngineRepo,omitempty\"`\n\tDockerComposeDownloadURL string `json:\"dockerComposeDownloadURL,omitempty\"`\n}\n```\nDockerSpecConfig is the configurations of docker\n\n```go\ntype Extension struct {\n\tName        string `json:\"name\"`\n\tSingleOrAll string `json:\"singleOrAll\"`\n\tTemplate    string `json:\"template\"`\n}\n```\nExtension represents an extension definition in the master or agentPoolProfile\n\n```go\ntype ExtensionProfile struct {\n\tName                           string             `json:\"name\"`\n\tVersion                        string             `json:\"version\"`\n\tExtensionParameters            string             `json:\"extensionParameters,omitempty\"`\n\tExtensionParametersKeyVaultRef *KeyvaultSecretRef `json:\"parametersKeyvaultSecretRef,omitempty\"`\n\tRootURL                        string             `json:\"rootURL,omitempty\"`\n\t// This is only needed for preprovision extensions and it needs to be a bash script\n\tScript   string `json:\"script,omitempty\"`\n\tURLQuery string `json:\"urlQuery,omitempty\"`\n}\n```\nExtensionProfile represents an extension definition\n\n```go\ntype FeatureFlags struct {\n\tEnableCSERunInBackground bool `json:\"enableCSERunInBackground,omitempty\"`\n\tBlockOutboundInternet    bool `json:\"blockOutboundInternet,omitempty\"`\n\tEnableIPv6DualStack      bool `json:\"enableIPv6DualStack,omitempty\"`\n}\n```\nFeatureFlags defines feature-flag restricted functionality\n\n```go\nfunc (f *FeatureFlags) IsIPv6DualStackEnabled() bool\n```\nIsIPv6DualStackEnabled checks if IPv6DualStack feature is enabled\n\n```go\ntype ImageReference struct {\n\tName           string `json:\"name,omitempty\"`\n\tResourceGroup  string `json:\"resourceGroup,omitempty\"`\n\tSubscriptionID string `json:\"subscriptionId,omitempty\"`\n\tGallery        string `json:\"gallery,omitempty\"`\n\tVersion        string `json:\"version,omitempty\"`\n}\n```\nImageReference represents a reference to an Image resource in Azure.\n\n```go\ntype KeyVaultCertificate struct {\n\tCertificateURL   string `json:\"certificateUrl,omitempty\"`\n\tCertificateStore string `json:\"certificateStore,omitempty\"`\n}\n```\nKeyVaultCertificate specifies a certificate to install On Linux, the certificate file is placed under the /var/lib/waagent directory with the file name \\\u003cUppercaseThumbprint\u003e.crt for the X509 certificate file and \\\u003cUppercaseThumbprint\u003e.prv for the private key. Both of these files are .pem formatted. On windows the certificate will be saved in the specified store.\n\n```go\ntype KeyVaultID struct {\n\tID string `json:\"id,omitempty\"`\n}\n```\nKeyVaultID specifies a key vault\n\n```go\ntype KeyVaultSecrets struct {\n\tSourceVault       *KeyVaultID           `json:\"sourceVault,omitempty\"`\n\tVaultCertificates []KeyVaultCertificate `json:\"vaultCertificates,omitempty\"`\n}\n```\nKeyVaultSecrets specifies certificates to install on the pool of machines from a given key vault the key vault specified must have been granted read permissions to CRP\n\n```go\ntype KeyvaultSecretRef struct {\n\tVaultID       string `json:\"vaultID\" validate:\"required\"`\n\tSecretName    string `json:\"secretName\" validate:\"required\"`\n\tSecretVersion string `json:\"version,omitempty\"`\n}\n```\nKeyvaultSecretRef is a reference to a secret in a keyvault. The format of 'VaultID' value should be \"/subscriptions/\\\u003cSUB\\_ID\u003e/resourceGroups/\\\u003cRG\\_NAME\u003e/providers/Microsoft.KeyVault/vaults/\\\u003cKV\\_NAME\u003e\" where:\n\n\t\u003cSUB_ID\u003e is the subscription ID of the keyvault\n\t\u003cRG_NAME\u003e is the resource group of the keyvault\n\t\u003cKV_NAME\u003e is the name of the keyvault\n\nThe 'SecretName' is the name of the secret in the keyvault The 'SecretVersion' (optional) is the version of the secret (default: the latest version)\n\n```go\ntype KubeProxyMode string\n```\nKubeProxyMode is for iptables and ipvs (and future others)\n\n```go\nconst (\n\tKubeProxyModeIPTables KubeProxyMode = \"iptables\"\n\tKubeProxyModeIPVS     KubeProxyMode = \"ipvs\"\n)\n```\nWe currently support ipvs and iptables\n\n```go\ntype KubernetesAddon struct {\n\tName       string                    `json:\"name,omitempty\"`\n\tEnabled    *bool                     `json:\"enabled,omitempty\"`\n\tContainers []KubernetesContainerSpec `json:\"containers,omitempty\"`\n\tConfig     map[string]string         `json:\"config,omitempty\"`\n\tData       string                    `json:\"data,omitempty\"`\n}\n```\nKubernetesAddon defines a list of addons w/ configuration to include with the cluster deployment\n\n```go\ntype KubernetesConfig struct {\n\tKubernetesImageBase             string            `json:\"kubernetesImageBase,omitempty\"`\n\tClusterSubnet                   string            `json:\"clusterSubnet,omitempty\"`\n\tDNSServiceIP                    string            `json:\"dnsServiceIP,omitempty\"`\n\tServiceCidr                     string            `json:\"serviceCidr,omitempty\"`\n\tNetworkPolicy                   string            `json:\"networkPolicy,omitempty\"`\n\tNetworkPlugin                   string            `json:\"networkPlugin,omitempty\"`\n\tContainerRuntime                string            `json:\"containerRuntime,omitempty\"`\n\tMaxPods                         int               `json:\"maxPods,omitempty\"`\n\tDockerBridgeSubnet              string            `json:\"dockerBridgeSubnet,omitempty\"`\n\tUseManagedIdentity              bool              `json:\"useManagedIdentity,omitempty\"`\n\tUserAssignedID                  string            `json:\"userAssignedID,omitempty\"`\n\tUserAssignedClientID            string            `json:\"userAssignedClientID,omitempty\"` //Note: cannot be provided in config. Used *only* for transferring this to azure.json.\n\tCustomHyperkubeImage            string            `json:\"customHyperkubeImage,omitempty\"`\n\tDockerEngineVersion             string            `json:\"dockerEngineVersion,omitempty\"` // Deprecated\n\tMobyVersion                     string            `json:\"mobyVersion,omitempty\"`\n\tContainerdVersion               string            `json:\"containerdVersion,omitempty\"`\n\tCustomCcmImage                  string            `json:\"customCcmImage,omitempty\"`\n\tUseCloudControllerManager       *bool             `json:\"useCloudControllerManager,omitempty\"`\n\tCustomWindowsPackageURL         string            `json:\"customWindowsPackageURL,omitempty\"`\n\tWindowsNodeBinariesURL          string            `json:\"windowsNodeBinariesURL,omitempty\"`\n\tUseInstanceMetadata             *bool             `json:\"useInstanceMetadata,omitempty\"`\n\tEnableRbac                      *bool             `json:\"enableRbac,omitempty\"`\n\tEnableSecureKubelet             *bool             `json:\"enableSecureKubelet,omitempty\"`\n\tEnableAggregatedAPIs            bool              `json:\"enableAggregatedAPIs,omitempty\"`\n\tPrivateCluster                  *PrivateCluster   `json:\"privateCluster,omitempty\"`\n\tGCHighThreshold                 int               `json:\"gchighthreshold,omitempty\"`\n\tGCLowThreshold                  int               `json:\"gclowthreshold,omitempty\"`\n\tEtcdVersion                     string            `json:\"etcdVersion,omitempty\"`\n\tEtcdDiskSizeGB                  string            `json:\"etcdDiskSizeGB,omitempty\"`\n\tEtcdEncryptionKey               string            `json:\"etcdEncryptionKey,omitempty\"`\n\tEnableDataEncryptionAtRest      *bool             `json:\"enableDataEncryptionAtRest,omitempty\"`\n\tEnableEncryptionWithExternalKms *bool             `json:\"enableEncryptionWithExternalKms,omitempty\"`\n\tEnablePodSecurityPolicy         *bool             `json:\"enablePodSecurityPolicy,omitempty\"`\n\tAddons                          []KubernetesAddon `json:\"addons,omitempty\"`\n\tKubeletConfig                   map[string]string `json:\"kubeletConfig,omitempty\"`\n\tControllerManagerConfig         map[string]string `json:\"controllerManagerConfig,omitempty\"`\n\tCloudControllerManagerConfig    map[string]string `json:\"cloudControllerManagerConfig,omitempty\"`\n\tAPIServerConfig                 map[string]string `json:\"apiServerConfig,omitempty\"`\n\tSchedulerConfig                 map[string]string `json:\"schedulerConfig,omitempty\"`\n\tPodSecurityPolicyConfig         map[string]string `json:\"podSecurityPolicyConfig,omitempty\"` // Deprecated\n\tCloudProviderBackoff            *bool             `json:\"cloudProviderBackoff,omitempty\"`\n\tCloudProviderBackoffRetries     int               `json:\"cloudProviderBackoffRetries,omitempty\"`\n\tCloudProviderBackoffJitter      float64           `json:\"cloudProviderBackoffJitter,omitempty\"`\n\tCloudProviderBackoffDuration    int               `json:\"cloudProviderBackoffDuration,omitempty\"`\n\tCloudProviderBackoffExponent    float64           `json:\"cloudProviderBackoffExponent,omitempty\"`\n\tCloudProviderRateLimit          *bool             `json:\"cloudProviderRateLimit,omitempty\"`\n\tCloudProviderRateLimitQPS       float64           `json:\"cloudProviderRateLimitQPS,omitempty\"`\n\tCloudProviderRateLimitBucket    int               `json:\"cloudProviderRateLimitBucket,omitempty\"`\n\tLoadBalancerSku                 string            `json:\"loadBalancerSku,omitempty\"`\n\tExcludeMasterFromStandardLB     *bool             `json:\"excludeMasterFromStandardLB,omitempty\"`\n\tAzureCNIVersion                 string            `json:\"azureCNIVersion,omitempty\"`\n\tAzureCNIURLLinux                string            `json:\"azureCNIURLLinux,omitempty\"`\n\tAzureCNIURLWindows              string            `json:\"azureCNIURLWindows,omitempty\"`\n\tKeyVaultSku                     string            `json:\"keyVaultSku,omitempty\"`\n\tMaximumLoadBalancerRuleCount    int               `json:\"maximumLoadBalancerRuleCount,omitempty\"`\n\tProxyMode                       KubeProxyMode     `json:\"kubeProxyMode,omitempty\"`\n\tPrivateAzureRegistryServer      string            `json:\"privateAzureRegistryServer,omitempty\"`\n}\n```\nKubernetesConfig contains the Kubernetes config structure, containing Kubernetes specific configuration\n\n```go\nfunc (k *KubernetesConfig) IsRBACEnabled() bool\n```\nIsRBACEnabled checks if RBAC is enabled\n\n```go\nfunc (k *KubernetesConfig) RequiresDocker() bool\n```\nRequiresDocker returns if the kubernetes settings require docker binary to be installed.\n\n```go\nfunc (k *KubernetesConfig) Validate(k8sVersion string, hasWindows, ipv6DualStackEnabled bool) error\n```\nValidate validates the KubernetesConfig\n\n```go\ntype KubernetesContainerSpec struct {\n\tName           string `json:\"name,omitempty\"`\n\tImage          string `json:\"image,omitempty\"`\n\tCPURequests    string `json:\"cpuRequests,omitempty\"`\n\tMemoryRequests string `json:\"memoryRequests,omitempty\"`\n\tCPULimits      string `json:\"cpuLimits,omitempty\"`\n\tMemoryLimits   string `json:\"memoryLimits,omitempty\"`\n}\n```\nKubernetesContainerSpec defines configuration for a container spec\n\n```go\ntype KubernetesSpecConfig struct {\n\tKubernetesImageBase              string `json:\"kubernetesImageBase,omitempty\"`\n\tTillerImageBase                  string `json:\"tillerImageBase,omitempty\"`\n\tACIConnectorImageBase            string `json:\"aciConnectorImageBase,omitempty\"`\n\tNVIDIAImageBase                  string `json:\"nvidiaImageBase,omitempty\"`\n\tAzureCNIImageBase                string `json:\"azureCNIImageBase,omitempty\"`\n\tCalicoImageBase                  string `json:\"calicoImageBase,omitempty\"`\n\tEtcdDownloadURLBase              string `json:\"etcdDownloadURLBase,omitempty\"`\n\tKubeBinariesSASURLBase           string `json:\"kubeBinariesSASURLBase,omitempty\"`\n\tWindowsTelemetryGUID             string `json:\"windowsTelemetryGUID,omitempty\"`\n\tCNIPluginsDownloadURL            string `json:\"cniPluginsDownloadURL,omitempty\"`\n\tVnetCNILinuxPluginsDownloadURL   string `json:\"vnetCNILinuxPluginsDownloadURL,omitempty\"`\n\tVnetCNIWindowsPluginsDownloadURL string `json:\"vnetCNIWindowsPluginsDownloadURL,omitempty\"`\n\tContainerdDownloadURLBase        string `json:\"containerdDownloadURLBase,omitempty\"`\n}\n```\nKubernetesSpecConfig is the kubernetes container images used.\n\n```go\ntype LinuxProfile struct {\n\tAdminUsername string `json:\"adminUsername\" validate:\"required\"`\n\tSSH           struct {\n\t\tPublicKeys []PublicKey `json:\"publicKeys\" validate:\"required,min=1\"`\n\t} `json:\"ssh\" validate:\"required\"`\n\tSecrets            []KeyVaultSecrets   `json:\"secrets,omitempty\"`\n\tScriptRootURL      string              `json:\"scriptroot,omitempty\"`\n\tCustomSearchDomain *CustomSearchDomain `json:\"customSearchDomain,omitempty\"`\n\tCustomNodesDNS     *CustomNodesDNS     `json:\"customNodesDNS,omitempty\"`\n}\n```\nLinuxProfile represents the linux parameters passed to the cluster\n\n```go\nfunc (l *LinuxProfile) HasCustomNodesDNS() bool\n```\nHasCustomNodesDNS returns true if the customer specified secrets to install\n\n```go\nfunc (l *LinuxProfile) HasSearchDomain() bool\n```\nHasSearchDomain returns true if the customer specified secrets to install\n\n```go\ntype MasterProfile struct {\n\tCount                    int               `json:\"count\" validate:\"required,eq=1|eq=3|eq=5\"`\n\tDNSPrefix                string            `json:\"dnsPrefix\" validate:\"required\"`\n\tSubjectAltNames          []string          `json:\"subjectAltNames\"`\n\tVMSize                   string            `json:\"vmSize\" validate:\"required\"`\n\tOSDiskSizeGB             int               `json:\"osDiskSizeGB,omitempty\" validate:\"min=0,max=1023\"`\n\tVnetSubnetID             string            `json:\"vnetSubnetID,omitempty\"`\n\tVnetCidr                 string            `json:\"vnetCidr,omitempty\"`\n\tAgentVnetSubnetID        string            `json:\"agentVnetSubnetID,omitempty\"`\n\tFirstConsecutiveStaticIP string            `json:\"firstConsecutiveStaticIP,omitempty\"`\n\tIPAddressCount           int               `json:\"ipAddressCount,omitempty\" validate:\"min=0,max=256\"`\n\tStorageProfile           string            `json:\"storageProfile,omitempty\" validate:\"eq=StorageAccount|eq=ManagedDisks|len=0\"`\n\tHTTPSourceAddressPrefix  string            `json:\"HTTPSourceAddressPrefix,omitempty\"`\n\tOAuthEnabled             bool              `json:\"oauthEnabled\"`\n\tPreProvisionExtension    *Extension        `json:\"preProvisionExtension\"`\n\tExtensions               []Extension       `json:\"extensions\"`\n\tDistro                   Distro            `json:\"distro,omitempty\"`\n\tKubernetesConfig         *KubernetesConfig `json:\"kubernetesConfig,omitempty\"`\n\tImageRef                 *ImageReference   `json:\"imageReference,omitempty\"`\n\tCustomFiles              *[]CustomFile     `json:\"customFiles,omitempty\"`\n\tAvailabilityProfile      string            `json:\"availabilityProfile\"`\n\tAgentSubnet              string            `json:\"agentSubnet,omitempty\"`\n\tAvailabilityZones        []string          `json:\"availabilityZones,omitempty\"`\n\tSinglePlacementGroup     *bool             `json:\"singlePlacementGroup,omitempty\"`\n\tAuditDEnabled            *bool             `json:\"auditDEnabled,omitempty\"`\n\tCustomVMTags             map[string]string `json:\"customVMTags,omitempty\"`\n\n\t// Master LB public endpoint/FQDN with port\n\t// The format will be FQDN:2376\n\t// Not used during PUT, returned as part of GET\n\tFQDN string `json:\"fqdn,omitempty\"`\n\n\t// True: uses cosmos etcd endpoint instead of installing etcd on masters\n\tCosmosEtcd *bool `json:\"cosmosEtcd,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nMasterProfile represents the definition of the master cluster\n\n```go\nfunc (m *MasterProfile) GetSubnet() string\n```\nGetSubnet returns the read-only subnet for the master\n\n```go\nfunc (m *MasterProfile) GetSubnetIPv6() string\n```\nGetSubnetIPv6 returns the read-only ipv6 subnet for the master\n\n```go\nfunc (m *MasterProfile) HasAvailabilityZones() bool\n```\nHasAvailabilityZones returns true if the master profile has availability zones\n\n```go\nfunc (m *MasterProfile) IsCoreOS() bool\n```\nIsCoreOS returns true if the master specified a CoreOS distro\n\n```go\nfunc (m *MasterProfile) IsCustomVNET() bool\n```\nIsCustomVNET returns true if the customer brought their own VNET\n\n```go\nfunc (m *MasterProfile) IsManagedDisks() bool\n```\nIsManagedDisks returns true if the master specified managed disks\n\n```go\nfunc (m *MasterProfile) IsRHEL() bool\n```\nIsRHEL returns true if the master specified a RHEL distro\n\n```go\nfunc (m *MasterProfile) IsStorageAccount() bool\n```\nIsStorageAccount returns true if the master specified storage account\n\n```go\nfunc (m *MasterProfile) IsUbuntu() bool\n```\nIsUbuntu returns true if the master profile distro is any ubuntu distro\n\n```go\nfunc (m *MasterProfile) IsUbuntu1604() bool\n```\nIsUbuntu1604 returns true if the master profile distro is based on Ubuntu 16.04\n\n```go\nfunc (m *MasterProfile) IsUbuntu1804() bool\n```\nIsUbuntu1804 returns true if the master profile distro is based on Ubuntu 18.04\n\n```go\nfunc (m *MasterProfile) IsVirtualMachineScaleSets() bool\n```\nIsVirtualMachineScaleSets returns true if the master availability profile is VMSS\n\n```go\nfunc (m *MasterProfile) SetSubnet(subnet string)\n```\nSetSubnet sets the read-only subnet for the master\n\n```go\nfunc (m *MasterProfile) SetSubnetIPv6(subnetIPv6 string)\n```\nSetSubnetIPv6 sets the read-only ipv6 subnet for the master\n\n```go\ntype OSType string\n```\nOSType represents OS types of agents\n\n```go\nconst (\n\tWindows OSType = \"Windows\"\n\tLinux   OSType = \"Linux\"\n)\n```\nthe OSTypes supported by vlabs\n\n```go\ntype OrchestratorProfile struct {\n\tOrchestratorType    string            `json:\"orchestratorType\" validate:\"required\"`\n\tOrchestratorRelease string            `json:\"orchestratorRelease,omitempty\"`\n\tOrchestratorVersion string            `json:\"orchestratorVersion,omitempty\"`\n\tKubernetesConfig    *KubernetesConfig `json:\"kubernetesConfig,omitempty\"`\n\tDcosConfig          *DcosConfig       `json:\"dcosConfig,omitempty\"`\n}\n```\nOrchestratorProfile contains Orchestrator properties\n\n```go\nfunc (o *OrchestratorProfile) IsSwarmMode() bool\n```\nIsSwarmMode returns true if this template is for Swarm Mode orchestrator\n\n```go\nfunc (o *OrchestratorProfile) UnmarshalJSON(b []byte) error\n```\nUnmarshalJSON unmarshal json using the default behavior And do fields manipulation, such as populating default value\n\n```go\ntype OrchestratorVersionProfile struct {\n\tOrchestratorProfile\n\tDefault  bool                   `json:\"default,omitempty\"`\n\tUpgrades []*OrchestratorProfile `json:\"upgrades,omitempty\"`\n}\n```\nOrchestratorVersionProfile contains information of a supported orchestrator version:\n\n  - orchestrator type and version\n  - whether this orchestrator version is deployed by default if orchestrator release is not specified\n  - list of available upgrades for this orchestrator version\n\n```go\ntype OrchestratorVersionProfileList struct {\n\tOrchestrators []*OrchestratorVersionProfile `json:\"orchestrators\"`\n}\n```\nOrchestratorVersionProfileList contains list of version profiles for supported orchestrators\n\n```go\ntype PoolUpgradeProfile struct {\n\tOrchestratorProfile\n\tName     string                 `json:\"name,omitempty\"`\n\tOSType   OSType                 `json:\"osType,omitempty\"`\n\tUpgrades []*OrchestratorProfile `json:\"upgrades,omitempty\"`\n}\n```\nPoolUpgradeProfile contains pool properties:\n\n  - orchestrator type and version\n  - pool name (for agent pool)\n  - OS type of the VMs in the pool\n  - list of applicable upgrades\n\n```go\ntype PrivateCluster struct {\n\tEnabled        *bool                  `json:\"enabled,omitempty\"`\n\tJumpboxProfile *PrivateJumpboxProfile `json:\"jumpboxProfile,omitempty\"`\n}\n```\nPrivateCluster defines the configuration for a private cluster\n\n```go\ntype PrivateJumpboxProfile struct {\n\tName           string `json:\"name\" validate:\"required\"`\n\tVMSize         string `json:\"vmSize\" validate:\"required\"`\n\tOSDiskSizeGB   int    `json:\"osDiskSizeGB,omitempty\" validate:\"min=0,max=1023\"`\n\tUsername       string `json:\"username,omitempty\"`\n\tPublicKey      string `json:\"publicKey\" validate:\"required\"`\n\tStorageProfile string `json:\"storageProfile,omitempty\"`\n}\n```\nPrivateJumpboxProfile represents a jumpbox definition\n\n```go\ntype Properties struct {\n\tProvisioningState       ProvisioningState        `json:\"provisioningState,omitempty\"`\n\tOrchestratorProfile     *OrchestratorProfile     `json:\"orchestratorProfile,omitempty\" validate:\"required\"`\n\tMasterProfile           *MasterProfile           `json:\"masterProfile,omitempty\" validate:\"required\"`\n\tAgentPoolProfiles       []*AgentPoolProfile      `json:\"agentPoolProfiles,omitempty\" validate:\"dive,required\"`\n\tLinuxProfile            *LinuxProfile            `json:\"linuxProfile,omitempty\" validate:\"required\"`\n\tExtensionProfiles       []*ExtensionProfile      `json:\"extensionProfiles,omitempty\"`\n\tWindowsProfile          *WindowsProfile          `json:\"windowsProfile,omitempty\"`\n\tServicePrincipalProfile *ServicePrincipalProfile `json:\"servicePrincipalProfile,omitempty\"`\n\tCertificateProfile      *CertificateProfile      `json:\"certificateProfile,omitempty\"`\n\tAADProfile              *AADProfile              `json:\"aadProfile,omitempty\"`\n\tFeatureFlags            *FeatureFlags            `json:\"featureFlags,omitempty\"`\n\tCustomCloudProfile      *CustomCloudProfile      `json:\"customCloudProfile,omitempty\"`\n}\n```\nProperties represents the AKS cluster definition\n\n```go\nfunc (p *Properties) HasAvailabilityZones() bool\n```\nHasAvailabilityZones returns true if the cluster contains any profile with zones\n\n```go\nfunc (p *Properties) HasCoreOS() bool\n```\nHasCoreOS returns true if the cluster contains coreos nodes\n\n```go\nfunc (p *Properties) HasWindows() bool\n```\nHasWindows returns true if the cluster contains windows\n\n```go\nfunc (p *Properties) HasZonesForAllAgentPools() bool\n```\nHasZonesForAllAgentPools returns true if all of the agent pools have zones\n\n```go\nfunc (p *Properties) IsAzureStackCloud() bool\n```\nIsAzureStackCloud return true if the cloud is AzureStack\n\n```go\nfunc (p *Properties) IsClusterAllVirtualMachineScaleSets() bool\n```\nIsClusterAllVirtualMachineScaleSets returns true if the cluster contains only Virtual Machine Scale Sets\n\n```go\nfunc (p *Properties) MastersAndAgentsUseAvailabilityZones() bool\n```\nMastersAndAgentsUseAvailabilityZones returns true if the cluster contains AZs for all agents and masters profiles\n\n```go\nfunc (a *Properties) ValidateOrchestratorProfile(isUpdate bool) error\n```\nValidateOrchestratorProfile validates the orchestrator profile and the addons dependent on the version of the orchestrator\n\n```go\ntype ProvisioningState string\n```\nProvisioningState represents the current state of container service resource.\n\n```go\nconst (\n\t// Creating means ContainerService resource is being created.\n\tCreating ProvisioningState = \"Creating\"\n\t// Updating means an existing ContainerService resource is being updated\n\tUpdating ProvisioningState = \"Updating\"\n\t// Failed means resource is in failed state\n\tFailed ProvisioningState = \"Failed\"\n\t// Succeeded means resource created succeeded during last create/update\n\tSucceeded ProvisioningState = \"Succeeded\"\n\t// Deleting means resource is in the process of being deleted\n\tDeleting ProvisioningState = \"Deleting\"\n\t// Migrating means resource is being migrated from one subscription or\n\t// resource group to another\n\tMigrating ProvisioningState = \"Migrating\"\n)\n```\n\n```go\ntype PublicKey struct {\n\tKeyData string `json:\"keyData\"`\n}\n```\nPublicKey represents an SSH key for LinuxProfile\n\n```go\ntype ResourcePurchasePlan struct {\n\tName          string `json:\"name,omitempty\"`\n\tProduct       string `json:\"product,omitempty\"`\n\tPromotionCode string `json:\"promotionCode,omitempty\"`\n\tPublisher     string `json:\"publisher,omitempty\"`\n}\n```\nResourcePurchasePlan defines resource plan as required by ARM for billing purposes.\n\n```go\ntype ServicePrincipalProfile struct {\n\tClientID          string             `json:\"clientId,omitempty\"`\n\tSecret            string             `json:\"secret,omitempty\"`\n\tObjectID          string             `json:\"objectId,omitempty\"`\n\tKeyvaultSecretRef *KeyvaultSecretRef `json:\"keyvaultSecretRef,omitempty\"`\n}\n```\nServicePrincipalProfile contains the client and secret used by the cluster for Azure Resource CRUD The 'Secret' and 'KeyvaultSecretRef' parameters are mutually exclusive The 'Secret' parameter should be a secret in plain text. The 'KeyvaultSecretRef' parameter is a reference to a secret in a keyvault.\n\n```go\ntype UpgradeProfile struct {\n\tControlPlaneProfile *PoolUpgradeProfile   `json:\"controlPlaneProfile\"`\n\tAgentPoolProfiles   []*PoolUpgradeProfile `json:\"agentPoolProfiles\"`\n}\n```\nUpgradeProfile contains cluster properties:\n\n  - orchestrator type and version for the cluster\n  - list of pool profiles, constituting the cluster\n\n```go\ntype WindowsProfile struct {\n\tAdminUsername          string            `json:\"adminUsername,omitempty\"`\n\tAdminPassword          string            `json:\"adminPassword,omitempty\"`\n\tImageVersion           string            `json:\"imageVersion,omitempty\"`\n\tWindowsImageSourceURL  string            `json:\"WindowsImageSourceUrl\"`\n\tWindowsPublisher       string            `json:\"WindowsPublisher\"`\n\tWindowsOffer           string            `json:\"WindowsOffer\"`\n\tWindowsSku             string            `json:\"WindowsSku\"`\n\tWindowsDockerVersion   string            `json:\"windowsDockerVersion\"`\n\tSecrets                []KeyVaultSecrets `json:\"secrets,omitempty\"`\n\tSSHEnabled             bool              `json:\"sshEnabled,omitempty\"`\n\tEnableAutomaticUpdates *bool             `json:\"enableAutomaticUpdates,omitempty\"`\n}\n```\nWindowsProfile represents the windows parameters passed to the cluster\n\n```go\nfunc (w *WindowsProfile) Validate(orchestratorType string) error\n```\nValidate ensures that the WindowsProfile is valid\n\n","path":"github.com/devigned/aks-engine/pkg/api/vlabs","name":"vlabs","synopsis":"Package vlabs stores an experimental API model.","isRedistributable":true}
