Apply gofmt to dns-controller

This commit is contained in:
Justin Santa Barbara 2016-07-27 11:04:57 -04:00
parent e3d6231fbe
commit 8df2a8c843
5 changed files with 18 additions and 18 deletions

View File

@ -312,7 +312,7 @@ func (o *dnsOp) findZone(fqdn string) dnsprovider.Zone {
if dot == -1 { if dot == -1 {
return nil return nil
} }
zoneName = zoneName[dot + 1:] zoneName = zoneName[dot+1:]
} }
} }

View File

@ -127,7 +127,7 @@ func (c *PodController) updatePodRecords(pod *v1.Pod) {
var aliases []string var aliases []string
if pod.Spec.HostNetwork { if pod.Spec.HostNetwork {
if pod.Spec.NodeName != "" { if pod.Spec.NodeName != "" {
aliases = append(aliases, "node/" + pod.Spec.NodeName + "/external") aliases = append(aliases, "node/"+pod.Spec.NodeName+"/external")
} }
} else { } else {
glog.V(4).Infof("Pod %q had %s=%s, but was not HostNetwork", pod.Name, AnnotationNameDnsExternal, specExternal) glog.V(4).Infof("Pod %q had %s=%s, but was not HostNetwork", pod.Name, AnnotationNameDnsExternal, specExternal)

View File

@ -158,5 +158,5 @@ func (c *ServiceController) updateServiceRecords(service *v1.Service) {
glog.V(4).Infof("Service %q did not have %s annotation", service.Name, AnnotationNameDnsInternal) glog.V(4).Infof("Service %q did not have %s annotation", service.Name, AnnotationNameDnsInternal)
} }
c.scope.Replace( service.Name, records) c.scope.Replace(service.Name, records)
} }