mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
fix mis-spelling (#3310)
Signed-off-by: xieyanker <xjsisnice@gmail.com>
This commit is contained in:
@@ -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