mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 18:23:25 -05:00
fix mis-spelling (#3310)
Signed-off-by: xieyanker <xjsisnice@gmail.com>
This commit is contained in:
@@ -49,7 +49,7 @@ func (k *Kubernetes) AutoPath(state request.Request) []string {
|
||||
return search
|
||||
}
|
||||
|
||||
// podWithIP return the api.Pod for source IP ip. It returns nil if nothing can be found.
|
||||
// podWithIP return the api.Pod for source IP. It returns nil if nothing can be found.
|
||||
func (k *Kubernetes) podWithIP(ip string) *object.Pod {
|
||||
ps := k.APIConn.PodIndex(ip)
|
||||
if len(ps) == 0 {
|
||||
|
||||
@@ -46,7 +46,7 @@ func ToService(obj interface{}) interface{} {
|
||||
}
|
||||
|
||||
if len(svc.Spec.Ports) == 0 {
|
||||
// Add sentinal if there are no ports.
|
||||
// Add sentinel if there are no ports.
|
||||
s.Ports = []api.ServicePort{{Port: -1}}
|
||||
} else {
|
||||
s.Ports = make([]api.ServicePort, len(svc.Spec.Ports))
|
||||
|
||||
Reference in New Issue
Block a user