Make kube-proxy resync its rules on firewalld restart

This commit is contained in:
Dan Winship
2015-08-14 12:38:43 -04:00
parent 8bc9c40796
commit 30ea22f40e
4 changed files with 22 additions and 10 deletions

View File

@@ -29,6 +29,8 @@ type ProxyProvider interface {
// Active service proxies are reinitialized if found in the update set or
// removed if missing from the update set.
OnServiceUpdate(services []api.Service)
// Sync immediately synchronizes the ProxyProvider's current state to iptables.
Sync()
// SyncLoop runs periodic work.
// This is expected to run as a goroutine or as the main loop of the app.
// It does not return.