func convertKubernetesConfigToVLabs()

in pkg/api/converterfromapi.go [244:327]


func convertKubernetesConfigToVLabs(apiCfg *KubernetesConfig, vlabsCfg *vlabs.KubernetesConfig) {
	vlabsCfg.KubernetesImageBase = apiCfg.KubernetesImageBase
	vlabsCfg.KubernetesImageBaseType = apiCfg.KubernetesImageBaseType
	vlabsCfg.MCRKubernetesImageBase = apiCfg.MCRKubernetesImageBase
	vlabsCfg.ClusterSubnet = apiCfg.ClusterSubnet
	vlabsCfg.DNSServiceIP = apiCfg.DNSServiceIP
	vlabsCfg.ServiceCidr = apiCfg.ServiceCIDR
	vlabsCfg.NetworkPolicy = apiCfg.NetworkPolicy
	vlabsCfg.NetworkPlugin = apiCfg.NetworkPlugin
	vlabsCfg.NetworkMode = apiCfg.NetworkMode
	vlabsCfg.ContainerRuntime = apiCfg.ContainerRuntime
	vlabsCfg.MaxPods = apiCfg.MaxPods
	vlabsCfg.DockerBridgeSubnet = apiCfg.DockerBridgeSubnet
	vlabsCfg.MobyVersion = apiCfg.MobyVersion
	vlabsCfg.LinuxMobyURL = apiCfg.LinuxMobyURL
	vlabsCfg.LinuxRuncURL = apiCfg.LinuxRuncURL
	vlabsCfg.ContainerdVersion = apiCfg.ContainerdVersion
	vlabsCfg.LinuxContainerdURL = apiCfg.LinuxContainerdURL
	vlabsCfg.CloudProviderBackoff = apiCfg.CloudProviderBackoff
	vlabsCfg.CloudProviderBackoffMode = apiCfg.CloudProviderBackoffMode
	vlabsCfg.CloudProviderBackoffDuration = apiCfg.CloudProviderBackoffDuration
	vlabsCfg.CloudProviderBackoffExponent = apiCfg.CloudProviderBackoffExponent
	vlabsCfg.CloudProviderBackoffJitter = apiCfg.CloudProviderBackoffJitter
	vlabsCfg.CloudProviderBackoffRetries = apiCfg.CloudProviderBackoffRetries
	vlabsCfg.CloudProviderRateLimit = apiCfg.CloudProviderRateLimit
	vlabsCfg.CloudProviderRateLimitBucket = apiCfg.CloudProviderRateLimitBucket
	vlabsCfg.CloudProviderRateLimitBucketWrite = apiCfg.CloudProviderRateLimitBucketWrite
	vlabsCfg.CloudProviderRateLimitQPS = apiCfg.CloudProviderRateLimitQPS
	vlabsCfg.CloudProviderRateLimitQPSWrite = apiCfg.CloudProviderRateLimitQPSWrite
	vlabsCfg.UseManagedIdentity = apiCfg.UseManagedIdentity
	vlabsCfg.UserAssignedID = apiCfg.UserAssignedID
	vlabsCfg.UserAssignedClientID = apiCfg.UserAssignedClientID
	vlabsCfg.CustomHyperkubeImage = apiCfg.CustomHyperkubeImage
	vlabsCfg.CustomKubeAPIServerImage = apiCfg.CustomKubeAPIServerImage
	vlabsCfg.CustomKubeControllerManagerImage = apiCfg.CustomKubeControllerManagerImage
	vlabsCfg.CustomKubeProxyImage = apiCfg.CustomKubeProxyImage
	vlabsCfg.CustomKubeSchedulerImage = apiCfg.CustomKubeSchedulerImage
	vlabsCfg.CustomKubeBinaryURL = apiCfg.CustomKubeBinaryURL
	vlabsCfg.CustomCcmImage = apiCfg.CustomCcmImage
	vlabsCfg.UseCloudControllerManager = apiCfg.UseCloudControllerManager
	vlabsCfg.CustomWindowsPackageURL = apiCfg.CustomWindowsPackageURL
	vlabsCfg.WindowsNodeBinariesURL = apiCfg.WindowsNodeBinariesURL
	vlabsCfg.WindowsContainerdURL = apiCfg.WindowsContainerdURL
	vlabsCfg.WindowsSdnPluginURL = apiCfg.WindowsSdnPluginURL
	vlabsCfg.UseInstanceMetadata = apiCfg.UseInstanceMetadata
	vlabsCfg.LoadBalancerSku = apiCfg.LoadBalancerSku
	vlabsCfg.ExcludeMasterFromStandardLB = apiCfg.ExcludeMasterFromStandardLB
	vlabsCfg.LoadBalancerOutboundIPs = apiCfg.LoadBalancerOutboundIPs
	vlabsCfg.EnableRbac = apiCfg.EnableRbac
	vlabsCfg.EnableSecureKubelet = apiCfg.EnableSecureKubelet
	vlabsCfg.EnableAggregatedAPIs = apiCfg.EnableAggregatedAPIs
	vlabsCfg.EnableDataEncryptionAtRest = apiCfg.EnableDataEncryptionAtRest
	vlabsCfg.EnableEncryptionWithExternalKms = apiCfg.EnableEncryptionWithExternalKms
	vlabsCfg.EnablePodSecurityPolicy = apiCfg.EnablePodSecurityPolicy
	vlabsCfg.GCHighThreshold = apiCfg.GCHighThreshold
	vlabsCfg.GCLowThreshold = apiCfg.GCLowThreshold
	vlabsCfg.EtcdVersion = apiCfg.EtcdVersion
	vlabsCfg.EtcdDiskSizeGB = apiCfg.EtcdDiskSizeGB
	vlabsCfg.EtcdStorageLimitGB = apiCfg.EtcdStorageLimitGB
	vlabsCfg.EtcdEncryptionKey = apiCfg.EtcdEncryptionKey
	vlabsCfg.AzureCNIVersion = apiCfg.AzureCNIVersion
	vlabsCfg.AzureCNIURLLinux = apiCfg.AzureCNIURLLinux
	vlabsCfg.AzureCNIURLWindows = apiCfg.AzureCNIURLWindows
	vlabsCfg.KeyVaultSku = apiCfg.KeyVaultSku
	vlabsCfg.MaximumLoadBalancerRuleCount = apiCfg.MaximumLoadBalancerRuleCount
	vlabsCfg.ProxyMode = vlabs.KubeProxyMode(apiCfg.ProxyMode)
	vlabsCfg.PrivateAzureRegistryServer = apiCfg.PrivateAzureRegistryServer
	vlabsCfg.OutboundRuleIdleTimeoutInMinutes = apiCfg.OutboundRuleIdleTimeoutInMinutes
	vlabsCfg.CloudProviderDisableOutboundSNAT = apiCfg.CloudProviderDisableOutboundSNAT
	vlabsCfg.KubeReservedCgroup = apiCfg.KubeReservedCgroup
	vlabsCfg.MicrosoftAptRepositoryURL = apiCfg.MicrosoftAptRepositoryURL
	vlabsCfg.EnableMultipleStandardLoadBalancers = apiCfg.EnableMultipleStandardLoadBalancers
	vlabsCfg.Tags = apiCfg.Tags
	convertComponentsToVlabs(apiCfg, vlabsCfg)
	convertAddonsToVlabs(apiCfg, vlabsCfg)
	convertKubeletConfigToVlabs(apiCfg, vlabsCfg)
	convertControllerManagerConfigToVlabs(apiCfg, vlabsCfg)
	convertCloudControllerManagerConfigToVlabs(apiCfg, vlabsCfg)
	convertAPIServerConfigToVlabs(apiCfg, vlabsCfg)
	convertSchedulerConfigToVlabs(apiCfg, vlabsCfg)
	convertPrivateClusterToVlabs(apiCfg, vlabsCfg)
	convertPodSecurityPolicyConfigToVlabs(apiCfg, vlabsCfg)
	convertContainerRuntimeConfigToVlabs(apiCfg, vlabsCfg)
}