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:
@@ -21,7 +21,9 @@ import (
|
||||
)
|
||||
|
||||
func UrlForFunction(m *Metadata) string {
|
||||
prefix := "/fission-function"
|
||||
// TODO this assumes the router's namespace is the same as whatever is hitting
|
||||
// this url -- so e.g. kubewatcher will have to run in the same ns as router.
|
||||
prefix := "http://router/fission-function"
|
||||
if len(m.Uid) > 0 {
|
||||
return fmt.Sprintf("%v/%v/%v", prefix, m.Name, m.Uid)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user