Refactor kubewatcher/webhook publisher

Create a Publisher interface. Refactor webhook publisher to satisfy
that interface.

Add some limited retries to webhook publisher.
This commit is contained in:
Soam Vasani
2016-12-19 14:38:44 -08:00
parent dddb50c00f
commit 0456df0d63
7 changed files with 181 additions and 115 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ func Start(controllerUrl string, routerUrl string) error {
if err != nil {
return err
}
poster := MakePoster(routerUrl)
poster := MakeWebhookPublisher()
kubeWatch := MakeKubeWatcher(kubeClient, poster)
client := client.MakeClient(controllerUrl)