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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user