From 4d75c3fa4eea1087574072efa9edadb3c3daa390 Mon Sep 17 00:00:00 2001 From: Soam Vasani Date: Tue, 20 Dec 2016 12:11:22 -0800 Subject: [PATCH] Make internal urls relative (as before) --- common.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common.go b/common.go index 15b22744..5f9a2c56 100644 --- a/common.go +++ b/common.go @@ -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 {