mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Update the CleanupAndExit field for the Options and the OnServiceSynced for the ServiceHandler comment
This commit is contained in:
parent
5993ec5a5a
commit
4ac81d7508
@ -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
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user