@@ -16,8 +16,6 @@ import (
16
16
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
17
17
18
18
"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"
21
19
"github.com/openshift/origin/pkg/cmd/server/start"
22
20
"github.com/openshift/origin/pkg/cmd/templates"
23
21
cmdutil "github.com/openshift/origin/pkg/cmd/util"
@@ -40,23 +38,13 @@ var (
40
38
func CommandFor (basename string , stopCh <- chan struct {}) * cobra.Command {
41
39
var cmd * cobra.Command
42
40
43
- out := os .Stdout
44
-
45
41
// Make case-insensitive and strip executable suffix if present
46
42
if runtime .GOOS == "windows" {
47
43
basename = strings .ToLower (basename )
48
44
basename = strings .TrimSuffix (basename , ".exe" )
49
45
}
50
46
51
47
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 )
60
48
default :
61
49
cmd = NewCommandOpenShift ("openshift" , stopCh )
62
50
}
0 commit comments