mirror of https://github.com/kubernetes/kops.git
Apply gofmt to dns-controller
This commit is contained in:
parent
e3d6231fbe
commit
8df2a8c843
|
|
@ -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:]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue