fix typos in federation-controller

This commit is contained in:
m1093782566 2017-08-04 14:51:53 +08:00
parent 2495cc602f
commit 1562bbef93

View File

@ -399,7 +399,7 @@ func (s *ServiceController) isSynced() bool {
} }
// reconcileService triggers reconciliation of a federated service with corresponding services in federated clusters. // reconcileService triggers reconciliation of a federated service with corresponding services in federated clusters.
// This function is called on service Addition/Deletion/Updation either in federated cluster or in federation. // This function is called on service Addition/Deletion/Update either in federated cluster or in federation.
func (s *ServiceController) reconcileService(key string) reconciliationStatus { func (s *ServiceController) reconcileService(key string) reconciliationStatus {
if !s.isSynced() { if !s.isSynced() {
glog.V(4).Infof("Data store not synced, delaying reconcilation: %v", key) glog.V(4).Infof("Data store not synced, delaying reconcilation: %v", key)
@ -621,7 +621,7 @@ func (s *ServiceController) getServiceStatusInCluster(cluster *v1beta1.Cluster,
return lbStatus, nil return lbStatus, nil
} }
// getServiceEndpointsInCluster returns ready endpoints corresonding to service in federated cluster // getServiceEndpointsInCluster returns ready endpoints corresponding to service in federated cluster
func (s *ServiceController) getServiceEndpointsInCluster(cluster *v1beta1.Cluster, key string) ([]v1.EndpointAddress, error) { func (s *ServiceController) getServiceEndpointsInCluster(cluster *v1beta1.Cluster, key string) ([]v1.EndpointAddress, error) {
addresses := []v1.EndpointAddress{} addresses := []v1.EndpointAddress{}