@@ -16,8 +16,6 @@ import (
1616 kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
1717
1818 "github.com/openshift/origin/pkg/cmd/flagtypes"
19- irouter "github.com/openshift/origin/pkg/cmd/infra/router"
20- "github.com/openshift/origin/pkg/cmd/recycle"
2119 "github.com/openshift/origin/pkg/cmd/server/start"
2220 "github.com/openshift/origin/pkg/cmd/templates"
2321 cmdutil "github.com/openshift/origin/pkg/cmd/util"
@@ -40,23 +38,13 @@ var (
4038func CommandFor (basename string , stopCh <- chan struct {}) * cobra.Command {
4139 var cmd * cobra.Command
4240
43- out := os .Stdout
44-
4541 // Make case-insensitive and strip executable suffix if present
4642 if runtime .GOOS == "windows" {
4743 basename = strings .ToLower (basename )
4844 basename = strings .TrimSuffix (basename , ".exe" )
4945 }
5046
5147 switch basename {
52- case "openshift-router" :
53- cmd = irouter .NewCommandTemplateRouter (basename )
54- case "openshift-f5-router" :
55- cmd = irouter .NewCommandF5Router (basename )
56- case "openshift-recycle" :
57- cmd = recycle .NewCommandRecycle (basename , out )
58- case "origin" :
59- cmd = NewCommandOpenShift (basename , stopCh )
6048 default :
6149 cmd = NewCommandOpenShift ("openshift" , stopCh )
6250 }
0 commit comments