Fix grammar eror of azure cloudprovider

This commit is contained in:
Lei Wang 2018-02-20 10:39:15 +08:00
parent c93cc804c4
commit 669560af38
3 changed files with 4 additions and 4 deletions

View File

@ -233,7 +233,7 @@ func (az *Cloud) getServiceLoadBalancer(service *v1.Service, clusterName string,
}
// selectLoadBalancer selects load balancer for the service in the cluster.
// The selection algorithm selects the the load balancer with currently has
// The selection algorithm selects the load balancer which currently has
// the minimum lb rules. If there are multiple LBs with same number of rules,
// then selects the first one (sorted based on name).
func (az *Cloud) selectLoadBalancer(clusterName string, service *v1.Service, existingLBs *[]network.LoadBalancer, nodes []*v1.Node) (selectedLB *network.LoadBalancer, existsLb bool, err error) {

View File

@ -132,7 +132,7 @@ func (az *Cloud) getLoadBalancerName(clusterName string, vmSetName string, isInt
return lbNamePrefix
}
// isMasterNode returns returns true is the node has a master role label.
// isMasterNode returns true if the node has a master role label.
// The master role is determined by looking for:
// * a kubernetes.io/role="master" label
func isMasterNode(node *v1.Node) bool {
@ -441,7 +441,7 @@ func (as *availabilitySet) GetIPByNodeName(name, vmSetName string) (string, erro
return targetIP, nil
}
// getAgentPoolAvailabiliySets lists the virtual machines for for the resource group and then builds
// getAgentPoolAvailabiliySets lists the virtual machines for the resource group and then builds
// a list of availability sets that match the nodes available to k8s.
func (as *availabilitySet) getAgentPoolAvailabiliySets(nodes []*v1.Node) (agentPoolAvailabilitySets *[]string, err error) {
vms, err := as.VirtualMachineClientListWithRetry()

View File

@ -325,7 +325,7 @@ func (ss *scaleSet) listScaleSetVMs(scaleSetName string) ([]computepreview.Virtu
return allVMs, nil
}
// getAgentPoolScaleSets lists the virtual machines for for the resource group and then builds
// getAgentPoolScaleSets lists the virtual machines for the resource group and then builds
// a list of scale sets that match the nodes available to k8s.
func (ss *scaleSet) getAgentPoolScaleSets(nodes []*v1.Node) (*[]string, error) {
agentPoolScaleSets := &[]string{}