Make internal urls relative (as before)

This commit is contained in:
Soam Vasani
2016-12-20 12:11:22 -08:00
parent 0456df0d63
commit 4d75c3fa4e
+1 -3
View File
@@ -21,9 +21,7 @@ import (
)
func UrlForFunction(m *Metadata) string {
// 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"
prefix := "/fission-function"
if len(m.Uid) > 0 {
return fmt.Sprintf("%v/%v/%v", prefix, m.Name, m.Uid)
} else {