summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/cmd
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2019-03-20 10:32:23 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2019-03-20 10:32:27 -0700
commit7f6bf1f5bbf3befbacb6b77e617c95fb371c4ef4 (patch)
treea1f7155a6616a02092777fd603a95e1e61344837 /src/k8splugin/cmd
parente50daed19bbaec979a91f2677289f1c2e6e0d0d9 (diff)
NewRouter supports custom backend clients
NewRouter needs to support custom clients This is needed where the backend clients are mocked and we need url path parameters to be available in our unit tests. Using the same router code allows us to do this. Issue-ID: MULTICLOUD-547 Change-Id: Id51b6f0a9afe4965efaf2611fc642bccb9ac1d39 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'src/k8splugin/cmd')
-rw-r--r--src/k8splugin/cmd/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/k8splugin/cmd/main.go b/src/k8splugin/cmd/main.go
index c07446a7..e0e715be 100644
--- a/src/k8splugin/cmd/main.go
+++ b/src/k8splugin/cmd/main.go
@@ -43,7 +43,7 @@ func main() {
log.Fatal(err)
}
- httpRouter := api.NewRouter(kubeconfig)
+ httpRouter := api.NewRouter(kubeconfig, nil, nil)
loggedRouter := handlers.LoggingHandler(os.Stdout, httpRouter)
log.Println("Starting Kubernetes Multicloud API")