fix mis-spelling (#3310)
Signed-off-by: xieyanker <xjsisnice@gmail.com>
This commit is contained in:
parent
27e22b0696
commit
9a5e4fa1a0
11 changed files with 13 additions and 13 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue