Documentation ¶
Overview ¶
All the helper functions should be hosted by another public repo later. (e.g. agentbaker) Helper functions in this file will be called by bootstrappers to populate nb contract payload.
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) nbcontractv1.LoadBalancerConfig_LoadBalancerSku
- func GetNetworkPluginType(networkPlugin string) nbcontractv1.NetworkPlugin
- func GetNetworkPolicyType(networkPolicy string) nbcontractv1.NetworkPolicy
- func GetOutBoundCmd(nbc *datamodel.NodeBootstrappingConfiguration) string
- func IsKubernetesVersionGe(actualVersion, version string) bool
- func Parse(inputJSON []byte) string
- func ValidateAndSetLinuxKubeletFlags(kubeletFlags map[string]string, cs *datamodel.ContainerService, ...)
Constants ¶
const ( NetworkPluginKubenet = "kubenet" 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) nbcontractv1.LoadBalancerConfig_LoadBalancerSku
GetLoadBalancerSKI returns the LoadBalancerSku enum based on the input string.
func GetNetworkPluginType ¶
func GetNetworkPluginType(networkPlugin string) nbcontractv1.NetworkPlugin
GetNetworkPluginType returns the NetworkPluginType enum based on the input string.
func GetNetworkPolicyType ¶
func GetNetworkPolicyType(networkPolicy string) nbcontractv1.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 Parse ¶
this function will eventually take a pointer to the bootstrap contract struct. it will then template out the variables into the final bootstrap trigger script.
func ValidateAndSetLinuxKubeletFlags ¶
func ValidateAndSetLinuxKubeletFlags(kubeletFlags map[string]string, cs *datamodel.ContainerService, profile *datamodel.AgentPoolProfile)
Types ¶
This section is empty.