Merge pull request #14982 from Huawei-PaaS/fixed_typos_for_proxy

Fixed some typos for pkg/proxy
This commit is contained in:
Alex Robinson
2015-10-05 11:40:03 -07:00
5 changed files with 10 additions and 10 deletions

View File

@@ -98,7 +98,7 @@ type Proxier struct {
// assert Proxier is a ProxyProvider
var _ proxy.ProxyProvider = &Proxier{}
// A key for the portMap. The ip has to be a tring because slices can't be map
// A key for the portMap. The ip has to be a string because slices can't be map
// keys.
type portMapKey struct {
ip string
@@ -218,7 +218,7 @@ func CleanupLeftovers(ipt iptables.Interface) (encounteredError bool) {
// flush and delete chains.
chains := []iptables.Chain{iptablesContainerPortalChain, iptablesHostPortalChain, iptablesHostNodePortChain, iptablesContainerNodePortChain}
for _, c := range chains {
// flush chain, then if sucessful delete, delete will fail if flush fails.
// flush chain, then if successful delete, delete will fail if flush fails.
if err := ipt.FlushChain(iptables.TableNAT, c); err != nil {
glog.Errorf("Error flushing userspace chain: %v", err)
encounteredError = true
@@ -348,7 +348,7 @@ func (proxier *Proxier) addServiceOnPort(service proxy.ServicePortName, protocol
// How long we leave idle UDP connections open.
const udpIdleTimeout = 250 * time.Millisecond
// OnUpdate manages the active set of service proxies.
// OnServiceUpdate manages the active set of service proxies.
// Active service proxies are reinitialized if found in the update set or
// shutdown if missing from the update set.
func (proxier *Proxier) OnServiceUpdate(services []api.Service) {
@@ -923,7 +923,7 @@ func (proxier *Proxier) iptablesHostPortalArgs(destIP net.IP, addDstLocalMatch b
// If the proxy is bound (see Proxier.listenIP) to 0.0.0.0 ("any
// interface") we want to do the same as from-container traffic and use
// REDIRECT. Except that it doesn't work (empirically). REDIRECT on
// localpackets sends the traffic to localhost (special case, but it is
// local packets sends the traffic to localhost (special case, but it is
// documented) but the response comes from the eth0 IP (not sure why,
// truthfully), which makes DNS unhappy.
//