From ba64ae18bc6efe384c9914da59c68ce0160013f5 Mon Sep 17 00:00:00 2001 From: yanghaichao12 Date: Mon, 7 Jan 2019 11:08:34 -0500 Subject: [PATCH] Fix typos in kube-proxy --- pkg/proxy/ipvs/netlink_linux.go | 2 +- pkg/proxy/ipvs/proxier.go | 2 +- pkg/proxy/util/port.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/proxy/ipvs/netlink_linux.go b/pkg/proxy/ipvs/netlink_linux.go index c917c9429c..f99d34f558 100644 --- a/pkg/proxy/ipvs/netlink_linux.go +++ b/pkg/proxy/ipvs/netlink_linux.go @@ -33,7 +33,7 @@ type netlinkHandle struct { isIPv6 bool } -// NewNetLinkHandle will crate a new NetLinkHandle +// NewNetLinkHandle will create a new NetLinkHandle func NewNetLinkHandle(isIPv6 bool) NetLinkHandle { return &netlinkHandle{netlink.Handle{}, isIPv6} } diff --git a/pkg/proxy/ipvs/proxier.go b/pkg/proxy/ipvs/proxier.go index a2b358b006..f96aee0836 100644 --- a/pkg/proxy/ipvs/proxier.go +++ b/pkg/proxy/ipvs/proxier.go @@ -669,7 +669,7 @@ func (proxier *Proxier) OnServiceDelete(service *v1.Service) { proxier.OnServiceUpdate(service, nil) } -// OnServiceSynced is called once all the initial even handlers were called and the state is fully propagated to local cache. +// OnServiceSynced is called once all the initial event handlers were called and the state is fully propagated to local cache. func (proxier *Proxier) OnServiceSynced() { proxier.mu.Lock() proxier.servicesSynced = true diff --git a/pkg/proxy/util/port.go b/pkg/proxy/util/port.go index 35924e05e8..2706f067fd 100644 --- a/pkg/proxy/util/port.go +++ b/pkg/proxy/util/port.go @@ -43,7 +43,7 @@ func (lp *LocalPort) String() string { return fmt.Sprintf("%q (%s/%s)", lp.Description, ipPort, lp.Protocol) } -// Closeable is an interface around closing an port. +// Closeable is an interface around closing a port. type Closeable interface { Close() error }