Documentation
¶
Overview ¶
Portions Copyright (c) Microsoft Corporation.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func GetDefaultOutboundCommand() string
- func GetKubeletConfigFlag(k map[string]string, cs *datamodel.ContainerService, ...) map[string]string
- func GetKubeletNodeLabels(agentPool *datamodel.AgentPoolProfile) map[string]string
- func GetLoadBalancerSKU(sku string) aksnodeconfigv1.LoadBalancerSku
- func GetNetworkPluginType(networkPlugin string) aksnodeconfigv1.NetworkPlugin
- func GetNetworkPolicyType(networkPolicy string) aksnodeconfigv1.NetworkPolicy
- func GetOutBoundCmd(nbc *datamodel.NodeBootstrappingConfiguration) string
- func IsKubernetesVersionGe(actualVersion, version string) bool
- func ValidateAndSetLinuxKubeletFlags(kubeletFlags map[string]string, cs *datamodel.ContainerService, ...)
Constants ¶
const ( VMTypeStandard = "standard" VMTypeVmss = "vmss" NetworkPluginAzure = "azure" NetworkPluginKubenet = "kubenet" NetworkPolicyAzure = "azure" NetworkPolicyCalico = "calico" LoadBalancerBasic = "basic" LoadBalancerStandard = "Standard" VMSizeStandardDc2s = "Standard_DC2s" VMSizeStandardDc4s = "Standard_DC4s" DefaultLinuxUser = "azureuser" DefaultCloudName = "AzurePublicCloud" AksCustomCloudName = "akscustom" AzureStackCloud = "AzureStackCloud" )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultOutboundCommand ¶
func GetDefaultOutboundCommand() string
GetDefaultOutboundCommand returns a default outbound traffic command.
func GetKubeletConfigFlag ¶
func GetKubeletConfigFlag(k map[string]string, cs *datamodel.ContainerService, profile *datamodel.AgentPoolProfile, kubeletConfigFileToggleEnabled bool) map[string]string
GetOrderedKubeletConfigFlagString returns an ordered string of key/val pairs. copied from AKS-Engine and filter out flags that already translated to config file.
func GetKubeletNodeLabels ¶
func GetKubeletNodeLabels(agentPool *datamodel.AgentPoolProfile) map[string]string
func GetLoadBalancerSKU ¶
func GetLoadBalancerSKU(sku string) aksnodeconfigv1.LoadBalancerSku
GetLoadBalancerSKI returns the LoadBalancerSku enum based on the input string.
func GetNetworkPluginType ¶
func GetNetworkPluginType(networkPlugin string) aksnodeconfigv1.NetworkPlugin
GetNetworkPluginType returns the NetworkPluginType enum based on the input string.
func GetNetworkPolicyType ¶
func GetNetworkPolicyType(networkPolicy string) aksnodeconfigv1.NetworkPolicy
GetNetworkPolicyType returns the NetworkPolicyType enum based on the input string.
func GetOutBoundCmd ¶
func GetOutBoundCmd(nbc *datamodel.NodeBootstrappingConfiguration) string
GetOutBoundCmd returns a proper outbound traffic command based on some cloud and Linux distro configs.
func IsKubernetesVersionGe ¶
IsKubernetesVersionGe returns true if actualVersion is greater than or equal to version.
func ValidateAndSetLinuxKubeletFlags ¶
func ValidateAndSetLinuxKubeletFlags(kubeletFlags map[string]string, cs *datamodel.ContainerService, profile *datamodel.AgentPoolProfile)
Types ¶
This section is empty.