diff --git a/cmd/kube-proxy/app/server.go b/cmd/kube-proxy/app/server.go index 9e519096b83..e75518ae8eb 100644 --- a/cmd/kube-proxy/app/server.go +++ b/cmd/kube-proxy/app/server.go @@ -99,7 +99,7 @@ type Options struct { ConfigFile string // WriteConfigTo is the path where the default configuration will be written. WriteConfigTo string - // CleanupAndExit, when true, makes the proxy server clean up iptables rules, then exit. + // CleanupAndExit, when true, makes the proxy server clean up iptables and ipvs rules, then exit. CleanupAndExit bool // CleanupIPVS, when true, makes the proxy server clean up ipvs rules before running. CleanupIPVS bool diff --git a/pkg/proxy/config/config.go b/pkg/proxy/config/config.go index a2da9d4ef4c..6d16a376a3d 100644 --- a/pkg/proxy/config/config.go +++ b/pkg/proxy/config/config.go @@ -40,7 +40,7 @@ type ServiceHandler interface { // OnServiceDelete is called whenever deletion of an existing service // object is observed. OnServiceDelete(service *v1.Service) - // OnServiceSynced is called once all the initial even handlers were + // OnServiceSynced is called once all the initial event handlers were // called and the state is fully propagated to local cache. OnServiceSynced() } diff --git a/pkg/util/async/bounded_frequency_runner.go b/pkg/util/async/bounded_frequency_runner.go index 20a06ad668a..5d74d53b13c 100644 --- a/pkg/util/async/bounded_frequency_runner.go +++ b/pkg/util/async/bounded_frequency_runner.go @@ -140,7 +140,7 @@ func NewBoundedFrequencyRunner(name string, fn func(), minInterval, maxInterval // Make an instance with dependencies injected. func construct(name string, fn func(), minInterval, maxInterval time.Duration, burstRuns int, timer timer) *BoundedFrequencyRunner { if maxInterval < minInterval { - panic(fmt.Sprintf("%s: maxInterval (%v) must be >= minInterval (%v)", name, minInterval, maxInterval)) + panic(fmt.Sprintf("%s: maxInterval (%v) must be >= minInterval (%v)", name, maxInterval, minInterval)) } if timer == nil { panic(fmt.Sprintf("%s: timer must be non-nil", name))