fix mis-spelling (#3310)

Signed-off-by: xieyanker <xjsisnice@gmail.com>
This commit is contained in:
xieyanker 2019-09-26 20:19:45 +08:00 committed by Miek Gieben
parent 27e22b0696
commit 9a5e4fa1a0
11 changed files with 13 additions and 13 deletions

View file

@ -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))