Update the CleanupAndExit field for the Options and the OnServiceSynced for the ServiceHandler comment

This commit is contained in:
xigang 2019-07-24 09:40:29 +08:00
parent 5993ec5a5a
commit 4ac81d7508
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ type Options struct {
ConfigFile string ConfigFile string
// WriteConfigTo is the path where the default configuration will be written. // WriteConfigTo is the path where the default configuration will be written.
WriteConfigTo string 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 CleanupAndExit bool
// CleanupIPVS, when true, makes the proxy server clean up ipvs rules before running. // CleanupIPVS, when true, makes the proxy server clean up ipvs rules before running.
CleanupIPVS bool CleanupIPVS bool

View File

@ -40,7 +40,7 @@ type ServiceHandler interface {
// OnServiceDelete is called whenever deletion of an existing service // OnServiceDelete is called whenever deletion of an existing service
// object is observed. // object is observed.
OnServiceDelete(service *v1.Service) 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. // called and the state is fully propagated to local cache.
OnServiceSynced() OnServiceSynced()
} }